Re: Layer Backed Views and CoreAnimation neither animate nor stay in place
Re: Layer Backed Views and CoreAnimation neither animate nor stay in place
- Subject: Re: Layer Backed Views and CoreAnimation neither animate nor stay in place
- From: David Duncan <email@hidden>
- Date: Sat, 5 Jul 2008 11:03:08 -0700
On Jul 5, 2008, at 8:34 AM, Uli Kusterer wrote:
On 27.06.2008, at 14:56, Chilton Webb wrote:
(1) If I specify that I want anything other than the main view to
have a layer, that view will instantly 'pop' to the foreground in
the window. However, its actual view remains in the same place in
the view hierarchy.
As far as I've seen so far, whenever a new layer is created, it is
inserted in the front. The only way I've found to fix it is to set
the zPosition of each view's layer manually. However, luckily that
seems to work :-)
You can use -insertSublayer:[atIndex: | below: | above:] to put a
layer in a specific ordering in the layer tree. This is generally
cheaper than changing the zPosition, as a change in zPosition forces
the sublayer list to be depth sorted.
--
David Duncan
Apple DTS Animation and Printing
email@hidden
_______________________________________________
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