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.
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 mails | Author | Date |
|---|---|---|
| Torsten Curdt | Jun 13, 21:55 | |
| I. Savant | Jun 13, 22:01 | |
| Torsten Curdt | Jun 14, 01:05 | |
| I. Savant | Jun 14, 01:25 | |
| Graham Cox | Jun 14, 03:10 | |
| Michael Ash | Jun 14, 06:57 | |
| Graham Cox | Jun 14, 07:33 | |
| Torsten Curdt | Jun 17, 18:51 | |
| Jonathan Hess | Jun 17, 20:47 |






Cocoa mail archive

