Chapter    14

Drawing in Cocoa

By now we’ve learned lots of powerful Cocoa techniques for dealing with data, optimally arranging our application’s classes, and using the wide range of on-screen controls and other views that are included with Cocoa. Now it’s time to start learning how to use Cocoa to make our own view classes, gaining complete control over the display of text and graphics. Mac applications are commonly known for including “eye candy”—not just for drawing needless graphical flourishes, but also for creating a more immersive interactive experience for the user. The graphics technologies available to us as Cocoa programmers can help us achieve some of the same kinds of effects with a surprisingly small amount of effort on our part. ...

Get Learn Cocoa on the Mac, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.