Re: Static text over an image
Re: Static text over an image
- Subject: Re: Static text over an image
- From: Andre Masse <email@hidden>
- Date: Thu, 30 Oct 2008 11:44:56 -0400
Thanks for the link Shawn. I guess I'll have to live with that.
Andre Masse
On Oct 30, 2008, at 11:26, Shawn Erickson wrote:
<http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/CocoaViewsGuide/WorkingWithAViewHierarchy/chapter_5_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."
In fact IB and ibtool warns about this when you compile a XIB.
If you are using layer backed views I think this restriction goes away
since layers have a more formal Z ordering requirement. I am not sure
if restricting to 10.5 alone is enough to deal with this (don't think
it is).
You normally deal with this by nesting views... your text view would
be a subview of the image view or by doing custom rendering.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden