• 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: +bundleForClass: category question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: +bundleForClass: category question
      • From: Graham Cox <email@hidden>
References: 
 >+bundleForClass: category question (From: Graham Cox <email@hidden>)
 >Re: +bundleForClass: category question (From: David Duncan <email@hidden>)
 >Re: +bundleForClass: category question (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: +bundleForClass: category question
  • Next by Date: NSTextAttachment
  • Previous by thread: Re: +bundleForClass: category question
  • Next by thread: Re: +bundleForClass: category question
  • Index(es):
    • Date
    • Thread