O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

33 Core Animation

In Chapter 17 you subclassed NSView to perform custom drawing in your application. You issued drawing commands and Quartz drew them on the screen. This is sufficient for many applications, where you might need to draw graphs or use basic, relatively static controls. This style of drawing can be intensive, however, and making it perform well requires that the developer to expend a lot of effort. For example, you want to only draw the parts of the view that have changed.

Core Animation takes a much different tack: instead of issuing drawing commands, the programmer composes the view by creating layers. Layers can display images or Bezier paths, and their appearance can be further manipulated by setting their ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required