Skip navigation.
 
mlRe: duplicating views
FROM : I. Savant
DATE : Fri Jun 13 22:01:46 2008

> 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.

Related mailsAuthorDate
mlduplicating views Torsten Curdt Jun 13, 21:55
mlRe: duplicating views I. Savant Jun 13, 22:01
mlRe: duplicating views Torsten Curdt Jun 14, 01:05
mlRe: duplicating views I. Savant Jun 14, 01:25
mlRe: duplicating views Graham Cox Jun 14, 03:10
mlRe: duplicating views Michael Ash Jun 14, 06:57
mlRe: duplicating views Graham Cox Jun 14, 07:33
mlRe: duplicating views Torsten Curdt Jun 17, 18:51
mlRe: duplicating views Jonathan Hess Jun 17, 20:47