Re: duplicating views
Re: duplicating views
- Subject: Re: duplicating views
- From: "I. Savant" <email@hidden>
- Date: Fri, 13 Jun 2008 16:01:46 -0400
> 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
--
I.S.
_______________________________________________
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