Re: Sharing a content view between two NSViews
Re: Sharing a content view between two NSViews
- Subject: Re: Sharing a content view between two NSViews
- From: "Simon Strandgaard" <email@hidden>
- Date: Mon, 12 Mar 2007 23:52:02 +0100
On 3/12/07, Roland Torres <email@hidden> wrote:
I have two NSWindows, and I would like them to both share the same
content view. They're to be displayed on different screens; one is on
a control panel; the other is what people see, full-screen, on a
dedicated monitor.
It seems that -setContentView:cview somehow removes cview from
wherever it's currently associated, and associates it only with the
receiver. Is there a way to share a content view between two NSViews?
Take a look at Model View Controller (MVC pattern).
You need 2 views connected to 1 model.
--
Simon Strandgaard
http://opcoders.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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