[noob] Best practice for creating multiple instances of a View
[noob] Best practice for creating multiple instances of a View
- Subject: [noob] Best practice for creating multiple instances of a View
- From: Stuart Malin <email@hidden>
- Date: Fri, 20 Mar 2009 08:19:28 -1000
I have a Nib file containing a single NSView that contains several
controls. I need to make numerous copies of this view (which are
placed as subviews of some containing view). Presently, I load the Nib
for each occurrence needed. But I now wonder if this is the best
approach (going back to the Nib file and loading each time). Is there
an alternative way to achieve this -- perhaps placing the target
NSView in some other Nib container (such as with the controller and
view that manage and contain the multiple instances of the target
view) and somehow creating new instances? I have looked through the
NSView reference material, and some of the Nib reference material, and
don't see any obvious alternative.
_______________________________________________
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