• 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: duplicating views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: duplicating views


  • Subject: Re: duplicating views
  • From: Torsten Curdt <email@hidden>
  • Date: Fri, 13 Jun 2008 16:05:05 -0700


On Jun 13, 2008, at 13:01, I. Savant wrote:

I have a NSView "template" in my nib that I am duplicating in a container
view like this:
<snip>
Unfortunately (but to no big surprise) this does not set the IBOutlets.
Is there any other way but injecting the references myself?

If you have a 'reusable' portion of UI, the (usually) best approach is to factor it out into its own separate NIB, then instantiate it as many times as needed with the appropriate owner. See this article:

http://www.cocoadevcentral.com/articles/000064.php

Hm ...factored out NIBs before. But in this case it just felt a bit award to use this for potentially like a few hundred items.


cheers
--
Torsten

_______________________________________________

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: duplicating views
      • From: "Michael Ash" <email@hidden>
    • Re: duplicating views
      • From: "I. Savant" <email@hidden>
References: 
 >duplicating views (From: Torsten Curdt <email@hidden>)
 >Re: duplicating views (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: NSToolbarItems - can I define the sorting in the customization palette
  • Next by Date: converting HTML causes crash
  • Previous by thread: Re: duplicating views
  • Next by thread: Re: duplicating views
  • Index(es):
    • Date
    • Thread