• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Layer Backed Views and CoreAnimation neither animate nor stay in place
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Layer Backed Views and CoreAnimation neither animate nor stay in place (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: c++ exceptions in objective c call stack
  • Next by Date: auxiliary window doesn't show again after first show
  • Previous by thread: Re: Layer Backed Views and CoreAnimation neither animate nor stay in place
  • Next by thread: command line arguments with NSWorkspace openFile
  • Index(es):
    • Date
    • Thread