Re: Non-square (triangular) views
Re: Non-square (triangular) views
- Subject: Re: Non-square (triangular) views
- From: Rosyna <email@hidden>
- Date: Fri, 17 Nov 2006 03:14:17 -0700
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.
Ack, at 11/17/06, Scott Anguish said:
On Nov 16, 2006, at 7:47 PM, Rosyna wrote:
Is there documentation that states this isn't reliable?
View Programming Guide for Cocoa
(http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/index.html#//apple_ref/doc/uid/TP40002978)
specifically in the Adding and Removing Views from a Hierarchy
section of the Working with the View Hierarchy article.
The existence of -[NSView sortSubviewsUsingFunction:context:] seems
to imply there is a very specific order in the way subviews are
drawn and that that order can be changed. Both of which would be
required for reliably overlapping views.
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/Reference.html#//apple_ref/occ/instm/NSView/sortSubviewsUsingFunction:context:
--
Sincerely,
Rosyna Keller
Technical Support/Carbon troll/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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