Re: copying views how to but change 1 w/o changing the other?
Re: copying views how to but change 1 w/o changing the other?
- Subject: Re: copying views how to but change 1 w/o changing the other?
- From: Nick Zitzmann <email@hidden>
- Date: Fri, 5 May 2006 09:40:50 -0600
On May 5, 2006, at 9:35 AM, Alan Smith wrote:
The part that doesn't do quite what I want
is, I create a new tab and use the view from the current tab and
set it as
the new tab's view. The problem is that when you change the view in
one tab
the same thing happens in the other. What can I do to avoid this? I
want the
views to be independent of the other.
Create a view controller class that owns the views placed within the
tab view and keeps the state of things that occur within each view.
Have the window controller keep track of the view controllers, and
when the user switches tabs, then you can obtain the view to place
within the tab view from the view controller. This will increase the
amount of memory your app uses, but it will solve the problem.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden