Re: How to change the z-order of the NSView
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