Re: [Pyobjc-dev] Using pathForResource_
Brought to you by:
ronaldoussoren
From: David C. <da...@ne...> - 2003-01-12 02:01:24
|
On 1/11/03 1:39 PM, "Dinu Gherman" <gh...@da...> wrote: > You're almost there, try this: > > NSBundle.mainBundle().pathForResource_of_Type_inDirectory_(...) Hm. That did change the error message, but still no luck. The line -- image = NSBundle.mainBundle().pathForResource_of_Type_inDirectory_( 'no_tunnels.png', 'png', '' ) -- produces the error message -- 2003-01-11 20:58:28.903 NewTunnels[3208] Exception raised during posting of notification. Ignored. exception: No attribute pathForResource_of_Type_inDirectory_ -- I am importing NSBundle from Foundation... which is the only one I know of. I can find the pathForResource call in the Cocoa help, but I must still be missing something. Thanks, David. |