Re: Sharing NSViews
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