Inconsistent NSBundle behavior
Inconsistent NSBundle behavior
- Subject: Inconsistent NSBundle behavior
- From: petite_abeille <email@hidden>
- Date: Thu, 17 Apr 2003 16:38:27 +0200
Hello,
I'm using NSBundle pathForResource:ofType: to locate some resources.
However, when trying to retrieve a resource which is a directory,
NSBundle returns nil if I don't specify any type... Which goes against
what the documentation states: "if the extension argument is nil or an
empty string (@""), the resource sought is identified by name, with no
extension"... In other words, if my resource is named
'Directory.extension', NSBundle returns its path. If the resource
doesn't have any extension, NSBundle returns nil :-(
What gives?
Thanks.
Cheers,
PA.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.