Re: Non-square (triangular) views
Re: Non-square (triangular) views
- Subject: Re: Non-square (triangular) views
- From: "I. Savant" <email@hidden>
- Date: Sat, 18 Nov 2006 23:09:51 -0500
Such as? The NSButton objects often overlap (it's frame is much
larger than is shown). Yet there are no issues.
NSButtons, in any case I've ever seen, are subviews of some parent
view. I've personally never seen an example where an NSButton
overlaps another button (or another view for that matter). Please
provide a concrete example where this is true. The docs don't say
this *never* works, they just say it's not guaranteed to work.
Actually, I think this could be better settled if someone could show
a case of overlapping views becoming a problem having an issue rather
than people quoting documentation other people are misreading.
Oh, there's no misreading :-) ... http://developer.apple.com/
documentation/Cocoa/Conceptual/CocoaViewsGuide/
WorkingWithAViewHierarchy/chapter_4_section_5.html
"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."
Unless I misunderstand my primary language (one which I've been
speaking for decades), this is quite clear. You CANNOT RELY ON THIS
WORKING CORRECTLY.
Any responsible developer should avoid overlapping views in
shipping Cocoa applications *because* it's not guaranteed to work
right. No ambiguity, no confusion, just a plain statement from the
creators.
To be blunt, there are MANY examples of overlapping views causing
drawing problems in this list's archives alone and searching the
archive would answer your challenge quite quickly.
--
I.S.
_______________________________________________
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