Re: Non-square (triangular) views
Re: Non-square (triangular) views
- Subject: Re: Non-square (triangular) views
- From: Scott Anguish <email@hidden>
- Date: Fri, 17 Nov 2006 11:42:07 -0500
It doesn't mention anything about usesOptimizedDrawing:
It says don't overlap sibling views.
Note: For performance reasons, Cocoa 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.
On Nov 17, 2006, at 5:14 AM, Rosyna wrote:
This is the same thing Stephen pointed to and it doesn't answer the
question. It just says you have to call usesOptimizedDrawing:NO on
the NSWinow to ensure that the order of the subviews is respected
when drawing. Furthermore, the only caveat when doing that is that
you cannot expect drawing to a view *outside* of drawRect: and
company to draw on the correct "layer", which is a complete non-
issue for most situations.
_______________________________________________
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