Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
- Subject: Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
- From: "Dr. H. Nikolaus Schaller" <email@hidden>
- Date: Sun, 2 May 2004 18:42:03 +0200
Am 02.05.2004 um 09:08 schrieb Allan Odgaard:
On 1. May 2004, at 15:35, Dr. H. Nikolaus Schaller wrote:
[...] The argument extension can be an empty string or nil; in either
case the pathname returned is the first one encountered with name,
regardless of the extension. [...]
The method seems not to behave like described on the last sentence.
Any ideas, hints?
Maybe a bug in the documentation rather than the implementation since
pathForResource:ofType: says: "[...] If the extension argument is nil
or an empty string (@), the resource sought is identified by name,
with no extension [...]".
Anyway, it's a candidate for the bug reporting system...
Or did it change?
Well, I always thought that it is different between
pathForResource:ofType: looking for an *empty* extension and
pathForResource:ofType:inDirectory: being able to look for *any*
extension.
-- hns
_______________________________________________
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.