• 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: Sharing NSViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sharing NSViews


  • Subject: Re: Sharing NSViews
  • From: "c. mendoza" <email@hidden>
  • Date: Fri, 8 Aug 2008 21:44:01 -0400


On Aug 8, 2008, at 9:07 PM, Graham Cox wrote:

Well then, you have your answer.


Yes, I assumed this was so, but I wanted to check if there was something I was missing.


A view presumably maintains a back reference to its superview, and only has one of these, so if it's added to a new superview it will disappear from the first one.


That makes sense.

Why do you think you need to do this anyway? If you have a view class just create a new instance of it.


Because the two views should be synchronized


On Aug 8, 2008, at 9:07 PM, Gary L. Wade wrote:
Each view has knowledge of only one superview and window. If you're wanting to coordinate the two views, you'd need to wire up a controller or use notifications to keep them in sync.


That should make it work.

Many thanks for the quick responses.

c.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


  • Follow-Ups:
    • Re: Sharing NSViews
      • From: Roland King <email@hidden>
    • Re: Sharing NSViews
      • From: Graham Cox <email@hidden>
References: 
 >NSSearchField bindings almost work (From: Dustin Robert Kick <email@hidden>)
 >Sharing NSViews (From: "c. mendoza" <email@hidden>)
 >Re: Sharing NSViews (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Challenge 18 in Hillegass Book
  • Next by Date: Re: Sharing NSViews
  • Previous by thread: Re: Sharing NSViews
  • Next by thread: Re: Sharing NSViews
  • Index(es):
    • Date
    • Thread