• 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: Synching Animations Across CALayers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Synching Animations Across CALayers


  • Subject: Re: Synching Animations Across CALayers
  • From: "E. Wing" <email@hidden>
  • Date: Fri, 23 May 2008 00:45:16 -0700

On 5/23/08, Bridger Maxwell <email@hidden> wrote:
> Hey,  I have a simple "pulse" animation that increases then decreases
> opacity, then repeats. I apply this animation to several different CALayers,
> at different times. I would like to have the animation synched across all of
> the CALayers. Right now, the animation starts from the beginning when I add
> the animation to a layer, and pulsates to its own time. I have looked at
> CAAnimationGroup, but that was to synch different CAAnimations all applied
> to the same layers. Perhaps there is a way to see how far along the
> animation is for a given layer, and be able to make another layer synch to
> the same time. Surely this has to be possible.
>
>
> TTFN
> Bridger Maxwell


Does surrounding your code in CATransaction begin/commit help?

[CATransaction begin];
<all your animations>
[CATransaction end];

-Eric
_______________________________________________

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: 
 >Synching Animations Across CALayers (From: "Bridger Maxwell" <email@hidden>)

  • Prev by Date: Re: DirWatch
  • Next by Date: Re: A documetation suggestion (was Re: Cocoa et al as HCI usability problem)
  • Previous by thread: Synching Animations Across CALayers
  • Next by thread: Re: Synching Animations Across CALayers
  • Index(es):
    • Date
    • Thread