Re: Transparent window and opaque objects
Re: Transparent window and opaque objects
- Subject: Re: Transparent window and opaque objects
- From: glenn andreas <email@hidden>
- Date: Thu, 25 Oct 2007 10:41:58 -0500
On Oct 25, 2007, at 10:16 AM, Lorenzo wrote:
Something is not so clear there. Does the OS draw the objects from
the index
0 to the last index?
Yes, No, Maybe - it isn't documented one way or the other.
If so, I can quite assume that the object 1 will be
drawn over the object 0.
No - it isn't documented one way or the other.
Actually it seems to work right this way.
Only on your specific OS version and video card and your specific
usage/refreshing history. On somebody else computer, or if they do
different things, different results will happen.
May you please explain what I should be aware?
As was posted earlier:
"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."
Just because it works for you doesn't mean it will work for others.
Don't rely on overlapping views working in any consistent fashion on
any currently shipping OS (at least as of 25 Oct 07).
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
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