• 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 16:17:49 -0700

On 5/23/08, Dmitri Goutnik <email@hidden> wrote:
>
> On May 23, 2008, at 11:18 AM, Bridger Maxwell wrote:
>
>> 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.
>>
>
> Haven't tried this myself but it should be possible to get currently
> displayed animation values using CALayer presentationLayer property.
>
> -Dmitri
>

The presentationLayer is a pretty good idea and definitely worth
trying. I do wonder about imperfect timing issues though. As I
understand it, Core Animation operates on its own thread so there
might be a slight skew between the time you query the value and the
time it takes to dispatch a new animation. I would be curious to know
the results of actually trying this.

If this doesn't work out, depending on your application, maybe another
thing to try is pre-creating all the pulsing layers at the same time
within a CATransaction block, but keep them hidden until you need
them. Then as you need them swap a non-pulsing layer for a pulsing
one. Not sure of the exact details as I haven't tried this.

-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>)
 >Re: Synching Animations Across CALayers (From: Dmitri Goutnik <email@hidden>)

  • Prev by Date: Re: Cover Flow in Cocoa?
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: Synching Animations Across CALayers
  • Next by thread: Query about Zip command
  • Index(es):
    • Date
    • Thread