Re: Core Animation and Run Loops
Re: Core Animation and Run Loops
- Subject: Re: Core Animation and Run Loops
- From: Shlok Datye <email@hidden>
- Date: Sun, 27 Sep 2009 19:56:17 +0200
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