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 (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 arch...@mail-archive.com

Reply via email to