Re: +bundleForClass: category question
Re: +bundleForClass: category question
- Subject: Re: +bundleForClass: category question
- From: Dave DeLong <email@hidden>
- Date: Mon, 16 Jul 2012 14:15:19 -0700
The answer is simple, and it's answered by the name of the method:
-bundleForClass:
Graham's framework does not define the class. Therefore, it is not the bundle that is returned from the method. This method returns the bundle that defines the class. In Graham's example, it would be the system framework.
Dave
On Jul 16, 2012, at 2:08 PM, Jens Alfke wrote:
>
> On Jul 15, 2012, at 8:29 PM, David Duncan <email@hidden> wrote:
>
>> The category is a method on the class you specify, therefore [self class] will be that class (whatever it is) and you will get the bundle for that class. In this case, it means your bundle will be the framework bundle.
>
> That's an ambiguous answer since Graham's got his own framework too.
>
> The answer, I think, is the _system_ framework bundle that contains the base implementation of the class, not Graham's framework with the category.
>
> —Jens
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please 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)
Please 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