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 PROTECTED]
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]