Re: Sharing NSViews
Re: Sharing NSViews
- Subject: Re: Sharing NSViews
- From: Graham Cox <email@hidden>
- Date: Sat, 9 Aug 2008 11:07:28 +1000
On 9 Aug 2008, at 10:56 am, c. mendoza wrote:
Hey All,
Is it possible to share an NSView across two different panels or
windows? I tried adding a view I already had in one of my windows to
a floating panel, but that view "disappeared" from its original
placement in the window and only showed up in the panel.
Well then, you have your answer.
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.
Why do you think you need to do this anyway? If you have a view class
just create a new instance of it.
cheers, Graham
_______________________________________________
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