OneSadCookie
2002.06.02, 10:14 PM
What is
[NSBundle pathForResource:@"Foo"
ofType:@"jpg"
inDirectory:@"Images"]
equivalent to?
I had assumed that it was equivalent to
[[NSBundle mainBundle] pathForResource:@"Foo"
ofType:@"jpg"
inDirectory:@"Images"]
... but it seems it isn't, because the first returns nil for me where the second works fine.
[NSBundle pathForResource:@"Foo"
ofType:@"jpg"
inDirectory:@"Images"]
equivalent to?
I had assumed that it was equivalent to
[[NSBundle mainBundle] pathForResource:@"Foo"
ofType:@"jpg"
inDirectory:@"Images"]
... but it seems it isn't, because the first returns nil for me where the second works fine.