• 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: Kyle Sluder <email@hidden>
  • Date: Wed, 24 Jun 2009 20:07:19 -0700

On Wed, Jun 24, 2009 at 6:20 AM, Chris Idou<email@hidden> wrote:
> Since the doco for loadNibNamed:owner: says that it looks in the bundle "associated"
> with the owner, I'm creating an object of a class that exists in the subframework to pass as the owner.

In the context of your application, are the classes a framework offers
the defining characteristics of those frameworks?  I guess a better
way of asking this question is, "does the class of File's Owner
matter?" or "is there a better way of choosing the bundle that
contains your nib?"  -[NSBundle
loadNibNamed:externalNameTable:withZone:] is an instance method; if
you already know which bundle to ask, you can just use that method.
For example, if you're iterating through all of the PlugIns in your
app bundle, you can just send them that message.

--Kyle Sluder
_______________________________________________

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>)

  • Prev by Date: Re: Watch for a file
  • Next by Date: Re: GC pros and cons
  • Previous by thread: Re: Confusion about NIB loading
  • Next by thread: Re: UML Diagramming or Other Helpful Software
  • Index(es):
    • Date
    • Thread