Re: Can't create an NSBundle
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.