• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: copying views how to but change 1 w/o changing the other?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: copying views how to but change 1 w/o changing the other?
      • From: "Alan Smith" <email@hidden>
References: 
 >copying views how to but change 1 w/o changing the other? (From: "Alan Smith" <email@hidden>)

  • Prev by Date: Re: can't get DOMDocument from WebView
  • Next by Date: Re: autorelease question
  • Previous by thread: copying views how to but change 1 w/o changing the other?
  • Next by thread: Re: copying views how to but change 1 w/o changing the other?
  • Index(es):
    • Date
    • Thread