Re: Subview drawing order ?
Re: Subview drawing order ?
- Subject: Re: Subview drawing order ?
- From: Brian Webster <email@hidden>
- Date: Tue, 23 Oct 2001 11:17:19 -0500
On Tuesday, October 23, 2001, at 08:55 AM, cocoa-dev-
email@hidden wrote:
This is probably a basic question but I haven't found an
answer yet.
Can someone tell me if there is a way to control the order in which
NSView draws its subviews ? I have a custom view that contains various
other custom subviews. I want outermost superview to draw last so that
whatever is drawn in it overlays the subviews that are drawn. Is there
a way to do this ?
No, there is not. NSViews draw from the top of the hierarchy
downward. If you want this behavior, you should not use
subviews, and instead do all the drawing in one view so that you
can control what order the elements are drawn in.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster