NSBundle pathForResource:ofType:
NSBundle pathForResource:ofType:
- Subject: NSBundle pathForResource:ofType:
- From: "Maryanna Rogers" <email@hidden>
- Date: Mon, 13 Aug 2007 16:38:19 -0400
Hi,
This should be simple, but it's driving me crazy.
I can add a text file (foo.txt) resource to my app that's accessible through:
NSString* fPath = [[NSBundle mainBundle] pathForResource:@"foo" ofType:@"txt"];
I get a path. Good.
Now if I add a different type of file to my app resources (foo.xyz),
and try to get it:
NSString* fPath = [[NSBundle mainBundle] pathForResource:@"foo" ofType:@"xyz"]
It can't be found. Is there something special I should know about the
ofType: parameter?
That's the only thing I've changed?!
~m
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden