• 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: Confusion about NIB loading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confusion about NIB loading


  • Subject: Re: Confusion about NIB loading
  • From: Graham Cox <email@hidden>
  • Date: Thu, 25 Jun 2009 10:34:59 +1000


On 25/06/2009, at 10:18 AM, Chris Idou wrote:

But loadNibNamed:owner: is a class method, so I can't actually explicitly find the appropriate bundle, and call loadNibNamed: on it to find the right NIB.

The doco says that loadNibNamed:owner: will look in the bundle "associated" with the owner, but passing in an object of a class in the appropriate Bundle doesn't seem to work for me.

Have you subclassed it, or is it genuinely a class supplied by the framework? I'm guessing, but if you've subclassed it and the associated bundle is determined by looking up the classname, it won't find a match, since your subclass is NOT present in the framework.


I ran into this myself just yesterday trying to load images from a framework bundle using a subclass of a framework object - it didn't work. I'm not currently sure what the workaround is, if there is one - seems to be a bug in the implementation to me, unless I've misunderstood something. Still investigating this one...

--Graham


_______________________________________________

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


References: 
 >Confusion about NIB loading (From: Chris Idou <email@hidden>)
 >Re: Confusion about NIB loading (From: Rob Keniger <email@hidden>)
 >Re: Confusion about NIB loading (From: Chris Idou <email@hidden>)

  • Prev by Date: Re: Confusion about NIB loading
  • Next by Date: RE: GC pros and cons
  • Previous by thread: Re: Confusion about NIB loading
  • Next by thread: Re: Confusion about NIB loading
  • Index(es):
    • Date
    • Thread