Re: Framework project config & accessing resources in the framework bundle.
Re: Framework project config & accessing resources in the framework bundle.
- Subject: Re: Framework project config & accessing resources in the framework bundle.
- From: Nelson Santos <email@hidden>
- Date: Sun, 11 Mar 2007 09:00:51 -0400
Hi Sherm,
Oh, thanks for the tip! My framework has classes, so I can use
bundleForClass, but bundleWithIdentifier is good to know about! Thanks.
Nelson
On Mar 11, 2007, at 6:00 AM, Sherm Pendley wrote:
On Mar 10, 2007, at 8:33 PM, Jerry Krinock wrote:
on 07/03/10 6:33, Nelson Santos at email@hidden wrote:
NSBundle *bundle = [NSBundle bundleForClass:[MyFrameworkClass
class]];
I've done this too, and it works for me. But I wonder how you've
defined
MyFrameworkClass? In order to do this, I had to declare an empty
class for
my framework, as shown below, which I thought was pretty goofy.
If your framework has no classes, you could use
+bundleWithIdentifier: instead of +bundleForClass:.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden