• 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: How to change the z-order of the NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to change the z-order of the NSView


  • Subject: Re: How to change the z-order of the NSView
  • From: j o a r <email@hidden>
  • Date: Wed, 2 Feb 2005 12:21:44 +0100


On 2005-02-02, at 12.11, JanakiRam wrote:

I am having a view in which randomly more views will be added. When i place a view on another view, the some part view frame is hidden by the newly added view. When i click on the view which is back i should bring the NSView to front i.e changing the z-order of the view.Please help me in this regard.

There is no built-in behaviour to sort sibling (views sharing a superview) views on z-order when clicked. The documentation also in general advice against overlapping sibling views:


"For performance reasons, the Application Kit does not enforce clipping among sibling views, or guarantee correct invalidation and drawing behavior when sibling views overlap. If you want a view to be drawn in front of another view, you should make the front view a subview (or descendant) of the rear view."

<http://developer.apple.com/documentation/Cocoa/Conceptual/DrawViews/ Concepts/ViewHierarchy.html>

j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to change the z-order of the NSView
      • From: Nicko van Someren <email@hidden>
References: 
 >How to change the z-order of the NSView (From: JanakiRam <email@hidden>)

  • Prev by Date: How to change the z-order of the NSView
  • Next by Date: Re: How to change the z-order of the NSView
  • Previous by thread: How to change the z-order of the NSView
  • Next by thread: Re: How to change the z-order of the NSView
  • Index(es):
    • Date
    • Thread