In Mac OS X v10.5 and later, you can associate graphical effects with your views using the effects pane of the inspector window. The effects pane takes advantage of Core Animation layers and other Core Graphics behaviors to implement graphical effects. Core Animation is a lightweight drawing layer that combines the power of Quartz, Core Image, and OpenGL with the simplicity of Cocoa views. When you enable layers for a view, Cocoa automatically inserts a Core Animation layer behind the view to manage drawing. You continue drawing content in your view’s drawRect: method as before, but drawing operations are more heavily optimized by the Core Animation layer. In addition, the presence of the Core animation layer makes it possible to apply additional visual effects to your view, including content filters, alpha and shadow effects, and transitions, without degrading your application’s performance significantly.
This chapter describes the contents of the effects inspector and shows you how to configure some of its more advanced properties.
The Effects Inspector
Configuring View Transitions
Configuring Filters
Last updated: 2007-10-31