2008 04 08Threaded Core Animation : sample code
This will be a bit clearer than just text and shows how Core Animation can update itself even when you're busy on the main thread, using
The transitions happen thanks to
[CATransaction setValue:[NSNumber numberWithFloat:0.0] forKey:kCATransactionAnimationDuration] which changes the default speed of interpolation to a new value. When you set a new value of a layer attribute, CA will interpolate from its current value to the new one with a set delay. If you want to make a transition, you can't go around setting your start value and then your end value : CA will start interpolating from current to start, but then you'll be setting a new value, the end one, right when CA has just started interpolating !
kCATransactionAnimationDuration lets us get rid of that delay while setting our start value, CA can then interpolate from our transition start value to the end value.
- CocoaNav a Cocoa Class Browser using Core Animation
- Core Animation Starfield Core Animation sample using 3D layers
- Core Animation culling problems Don't setup a projection transform on the root layer !
- Threaded Core Animation while on the main thread, update your display with
- Core Animation Bindings binding Cocoa objects to
Core Animation Bindings.zip
- Core Animation Phantom Fade seeing ghosting ? Use two transaction to create and animate your objects
- Photoshop-like compositing with Core Animation