Re: NSBezierPath (again) and region subtraction.
Re: NSBezierPath (again) and region subtraction.
- Subject: Re: NSBezierPath (again) and region subtraction.
- From: Brian Webster <email@hidden>
- Date: Tue, 2 Jul 2002 14:06:00 -0500
On Tuesday, July 2, 2002, at 12:36 PM, cocoa-dev-
email@hidden wrote:
Question 2:
Whilst I have the stage, how can you force a NSView to the top
of the stacking order? (Like XRaiseWindow in X11 speak). If I
removeFromSuperview and then addSubview to put it back - it has
the desired effect, except Cocoa decides it wants to redraw everything
in site. (I tried removeFromSuperviewWithoutNeedingDisplay but
that doesnt
seem to have the desired effect). It would seem like a nice
idea to alter the Z-level stacking order without having to
remove and put back the view. Any ideas?
The official stance is that NSView does not support overlapping
views. Any views with the same superview that have overlapping
frames will be drawn in an undefined order. It's true that they
happen to be drawn in the order they are added to the superview,
but that is an implementation detail and is subject to change.
If you need to be able to have elements draw in a specific
order, you should draw them all within the same view instead of
using subviews.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.