Introduction to Animation Programming Guide for Cocoa
Cocoa provides facilities for animating certain types of operations over a finite or indefinite amount of time. The basic animation support provided by the NSAnimation
class focuses on providing you with a source for animation timing and management. Although the word "animation" may make you think of cartoons or other forms of movies, animation objects are more designed for animating portions of your program's user interface. For example, you can use the NSViewAnimation
class (a subclass of NSAnimation
) to create smooth transitions in the size, position, or opacity of a view or window. This animated appearance lets you create a user interface with a more fluid appearance.
This document describes the fundamental concepts involved in using Cocoa animation objects and also provides examples of how to use them in your own applications.
Organization of This Document
This document contains the following articles:
Using an NSAnimation Object describes the basic features of animation objects and how you customize them.
Animating Views and Windows describes the use of view animation objects, which provide a high-level interface for smoothly resizing, repositioning, and changing the opacity of view and window objects.
Copyright © 2006 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2006-05-23