Re: Problem using zPosition on layer backed views
Re: Problem using zPosition on layer backed views
- Subject: Re: Problem using zPosition on layer backed views
- From: Kyle Sluder <email@hidden>
- Date: Sun, 7 Nov 2010 13:38:23 -0800
On Nov 7, 2010, at 7:58 AM, Matt Neuburg <email@hidden> wrote:
>
> View drawing order (back to front) is layer drawing order for the layers belonging to those views. Suppose view A has ten layers and view B has ten layers, and view A is before view B as a sibling. Then all of A's layers, regardless of their mutual z order, must be drawn before (and appear behind) all of B's layers. There is nothing you can do about this, and if you think you can, what you're missing is a fundamental understanding of what a layer is. m.
This isn't strictly true. If views A and B are both descendants of a layer-backed ancestor, all the layers will exist in the same layer tree and you can—but shouldn't—abuse them behind AppKit's back. As Gideon has discovered, when and if AppKit fixes the layers to match the view hierarchy is an implementation detail subject to change.
--Kyle Sluder_______________________________________________
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