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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to