• 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
[SOLVED] Re: [noob] Best practice for creating multiple instances of a View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: [noob] Best practice for creating multiple instances of a View


  • Subject: [SOLVED] Re: [noob] Best practice for creating multiple instances of a View
  • From: Stuart Malin <email@hidden>
  • Date: Sun, 22 Mar 2009 20:01:44 -1000


On Mar 20, 2009, at 11:08 AM, Stuart Malin wrote:


On Mar 20, 2009, at 10:09 AM, mmalc Crawford wrote:

Modulo other's comments about premature optimisation, if you want to
avoid going back to the disk:
<http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Classes/NSNib_Class/Reference/Reference.html

initWithNibNamed:bundle:
instantiateNibWithOwner:topLevelObjects:

Thanks mmalc. That looks to be the way to go: "You may use this method to instantiate a nib file multiple times."

As a follow-up, I've implemented code in this manner, and everything works just fine. As to whether it is more efficient or not, I've no idea.
_______________________________________________


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: 
 >Re: [noob] Best practice for creating multiple instances of a View (From: Stuart Malin <email@hidden>)

  • Prev by Date: Creating UI for as of Get Info Panel
  • Next by Date: Re: Creating UI for as of Get Info Panel
  • Previous by thread: Re: [noob] Best practice for creating multiple instances of a View
  • Next by thread: Is there an icon to represent "select all"?
  • Index(es):
    • Date
    • Thread