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

[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


  • Follow-Ups:
    • Re: [noob] Best practice for creating multiple instances of a View
      • From: mmalc Crawford <email@hidden>
    • Re: [noob] Best practice for creating multiple instances of a View
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSTimer & Runloop questions
  • Next by Date: Re: need advice on subclassing NSScrollVIew
  • Previous by thread: Re: Bug+Fix: NSController (and subclasses) have problems with custom KVO keys
  • Next by thread: Re: [noob] Best practice for creating multiple instances of a View
  • Index(es):
    • Date
    • Thread