Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
- Subject: Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
- From: Douglas Davidson <email@hidden>
- Date: Mon, 3 May 2004 09:52:53 -0700
On May 1, 2004, at 6:35 AM, Dr. H. Nikolaus Schaller wrote:
It does not find anything (returns nil). When changeing the ofType:nil
to ofType:@"gif", it finds the file - if it really has the extension
.gif.
This is the correct behavior. The documentation may be a little
unclear; if the type argument is nil, then NSBundle simply looks for a
match for the specified name, without doing any processing of
extensions.
Douglas Davidson
_______________________________________________
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.