• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >bug in NSBundle pathForResource:ofType:inDirectory: ? (From: "Dr. H. Nikolaus Schaller" <email@hidden>)

  • Prev by Date: RE: Bug in NSCalendarDate?
  • Next by Date: NSFont fontWithName: matrix:
  • Previous by thread: Re: bug in NSBundle pathForResource:ofType:inDirectory: ?
  • Next by thread: Do a click by code
  • Index(es):
    • Date
    • Thread