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 protected]> 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 protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to