[SOLVED] Re: [noob] Best practice for creating multiple instances of a View
[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