• 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: Core Animation and Run Loops
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Animation and Run Loops


  • Subject: Re: Core Animation and Run Loops
  • From: Oleg Krupnov <email@hidden>
  • Date: Mon, 28 Sep 2009 08:51:17 +0300

Thanks! You are right, I have tested it on Snow Leopard, and the CA
animation runs simultaneously with the blocking NSAnimation, as
claimed in the Wikipedia. What a revelation! I'd say, what an ANNOYING
revelation! It means that this ability of CA animation of running in a
separate thread is rendered useless by this bug. I cannot rely on this
ability until a sufficient number of users upgrades to Snow Leopard,
and the long tail of this process will never end, so it's practically
never.

Or is there a workaround, beside using non-blocking animation, which
is often too tedious and sometimes not smooth enough?

On Sun, Sep 27, 2009 at 8:56 PM, Shlok Datye <email@hidden> wrote:
> Take a look at this movie, which was taken on Leopard:
> http://shlok.s3.amazonaws.com/20090927-ca-problem.mov
> The blue rectangle is a layer-backed NSView that is animated using Core
> Animation. The problem is that the animation halts while the main loop waits
> for the mouse to get released.
> For your information, this was a bug that has been fixed in Snow Leopard.
> I'm therefore curious: Have you tried running a blocking NSAnimation along
> with a CA-animation in Snow Leopard?
> Shlok Datye
> Coding Turtle
> http://codingturtle.com
>
> Hi,
>
> Today I read this in wikipedia:
> (http://en.wikipedia.org/wiki/Core_Animation)
>
> "Animated sequences execute in a thread independent from the main run
> loop, allowing application processing to occur while the animation is
> in progress."
>
> However, in my experience, Core Animation animations do not run while
> the main thread is blocked. For example, when the main thread is
> running a usual blocking NSAnimation, the CA-animation is frozen and
> resumed only when the NSAnimation ends.
>
> Could someone clarify on this, please?
>
>
>
_______________________________________________

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

  • Follow-Ups:
    • Re: Core Animation and Run Loops
      • From: Kyle Sluder <email@hidden>
References: 
 >Core Animation and Run Loops (From: Oleg Krupnov <email@hidden>)
 >Re: Core Animation and Run Loops (From: Shlok Datye <email@hidden>)

  • Prev by Date: Re: Can an app query the values in its own Info.plist?
  • Next by Date: Re: Core Animation and Run Loops
  • Previous by thread: Re: Core Animation and Run Loops
  • Next by thread: Re: Core Animation and Run Loops
  • Index(es):
    • Date
    • Thread