Jump to content

Core Animation

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wei.cs (talk | contribs) at 19:45, 11 March 2009 (External links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Core Animation is a data visualization API used by Mac OS X v10.5 and iPhone OS to produce animated user interfaces.[1]

Overview

Core Animation provides a way for developers to produce animated user interfaces via an implicit animation model as well as an "explicit" model. The developer specifies the original and final states of an object, and Core Animation handles interpolation. This allows animated interfaces to be created with relative ease, as no specific code for the animation is required by the developer.[2]

Core Animation can animate any visual element, and it provides a unified way of accessing Core Image, Core Video, and the other Quartz technologies. Like the rest of the graphics model, Core Animation can be accelerated by a graphics processor (GPU).[1]

Animated sequences execute in a thread independent from the main run loop, allowing application processing to occur while the animation is in progress. In this way, application performance is not affected, and animations can be stopped, reversed, or retargeted while in progress. [1]

Updating an existing Cocoa application to use Core Animation should be a simple process. The standard GUI widgets and windows used by the application need be initially registered into a Core Animation setup function. Beyond that, core animation code can be largely segregated from standard GUI logic.

One common example of Core Animation usage is in Apple's iChat instant messenger. Animation is used to "inject" a freshly logged-in friend into your active buddy list. This behavior existed in Mac OS X versions prior to 10.5, but was not available in any public API, frustrating third party developers set on imitating this animation. According to Apple, source code for iChat and other in-house applications was simplified greatly by replacing repetitive animation code with Core Animation[citation needed].

History

Core Animation first appeared in Mac OS X v10.5, but actually first emerged from the iPhone software team[citation needed]. It was shown publicly for the first time on August 7, 2006 during WWDC 2006. At the Macworld Expo 2007, Apple announced that the iPhone runs a specially adapted version of Mac OS X and uses Core Animation.

References

  1. ^ a b c "Apple - Developer - Leopard Technology Series for Developers - Leopard Developer Application Technologies Overview". Retrieved 2007-06-12.
  2. ^ "Apple - Mac OS X Leopard - Technology - Core Animation". Retrieved 2007-10-30.