• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re-ordering the layers of NSView's subviews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: re-ordering the layers of NSView's subviews
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: How to eliminate field editor from NSTextField?
  • Next by Date: Re: re-ordering the layers of NSView's subviews
  • Previous by thread: Re: How to eliminate field editor from NSTextField?
  • Next by thread: Re: re-ordering the layers of NSView's subviews
  • Index(es):
    • Date
    • Thread