• 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
Inconsistent NSBundle behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: NSStatusItem & Focus
  • Next by Date: Poof?
  • Previous by thread: NSStatusItem & Focus
  • Next by thread: Re: Inconsistent NSBundle behavior
  • Index(es):
    • Date
    • Thread