• 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: Can't create an NSBundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't create an NSBundle


  • Subject: Re: Can't create an NSBundle
  • From: Rosyna <email@hidden>
  • Date: Sat, 13 Mar 2004 15:07:39 -0700

Actually, I am an idiot. I didn't realized it but when using CFURLCopyPath it copies an escaped path and that is why it didn't work (I was passing the URL to CFBundleCreate so that is why that worked) I should have been using CFURLCopyFileSystemPath instead.

Ack, at 3/14/04, Hiro Fujimoto said:

Rosyna,

Check your path with [[NSFilemanager defaultManager] fileExistsAtPath: YourBundlePath].
Does it return YES?

---


On 2004/03/14, at 3:55, Rosyna wrote:

I need to load a category from an NSBundle in my plugin's path but for some odd reason when I pass the path to NSBundle's -initWithPath: it returns NULL. However, if I pass the same path (as a URL) to CFBundleCreate it returns a valid bundle (but, AFAIK, won't load my category which is why the bundle exists).

Any ideas why NSBundle won't love my bundle? Does it need some special target settings in xcode? (legacy bundle)

--


Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People
_______________________________________________
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: 
 >Can't create an NSBundle (From: Rosyna <email@hidden>)
 >Re: Can't create an NSBundle (From: Hiro Fujimoto <email@hidden>)

  • Prev by Date: Re: Clicking Dock Icon creates a new window
  • Next by Date: Re: Clicking Dock Icon creates a new window
  • Previous by thread: Re: Can't create an NSBundle
  • Next by thread: Re: what's my binding?
  • Index(es):
    • Date
    • Thread