re-ordering the layers of NSView's subviews
re-ordering the layers of NSView's subviews
- Subject: re-ordering the layers of NSView's subviews
- From: Dave Carpeneto <email@hidden>
- Date: Tue, 23 Mar 2010 20:30:24 -0400
Hi all - I've got the following situation:
* A 'parent' NSView, which in turn has a number of subviews
* These subviews have been added via the [NSView addSubview:newView
positioned:NSWindowAbove relativeTo:nil] method (so each time a user
adds a subview it's @ the top of the viewing list)
* The subviews are not opaque, have layers, and sometimes overlap
My issue: when the user clicks on a subview I'd like that subview to
become the 'top' subview, but I cannot see how this is possible (apart
from deleting & re-adding the subview to the parent). Any ideas on how I
can do this ?
FWIW, what I'm wanting is similar to overlapping icons in a finder
window (click an exposed corner of an icon that covered by another icon
& the icon clicked is magically brought to the top of the list).
Any insight appreciated. Thanks all - Dave
_______________________________________________
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