On Saturday, Jan 11, 2003, at 21:01 US/Eastern, David Casti wrote:
> image = NSBundle.mainBundle().pathForResource_of_Type_inDirectory_(
> 'no_tunnels.png', 'png', '' )
You need to literally replace the ':' in the method name with '_'.
I.e. NSBundle's method...
pathForResource:ofType:inDirectory:
... becomes ...
pathForResource_ofType_inDirectory_()
So:
NSBundle.mainBundle().pathForResource_ofType_inDirectory_('no_tunnels.pn
g', 'png', '')
But that won't work either. You probably want:
NSBundle.mainBundle().pathForResource_ofType_('no_tunnels', 'png')
Or:
NSBundle.mainBundle().pathForResource_ofType_('no_tunnels.png',
None)
b.bum
|