Re: Superimpose a NSTextField over NSImageView?
Re: Superimpose a NSTextField over NSImageView?
- Subject: Re: Superimpose a NSTextField over NSImageView?
- From: "Finlay Dobbie" <email@hidden>
- Date: Sun, 23 Apr 2006 15:22:27 +0100
On 23/04/06, Dave Rosborough <email@hidden> wrote:
> This should do what the OP was looking for, and in fact very likely
> forms the basis for "Bring to Front" and "Send to Back". It doesn't
> seem like the drawing order of sibling NSViews is really undefined at
> all.
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/WorkingWithAViewHierarchy/chapter_4_section_5.html
clearly states:
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.
-- Finlay
_______________________________________________
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