Chapter 15
Advanced Drawing Topics
Chapter 14 provided some basic knowledge of Cocoa’s key drawing concepts, such as using paths to describe shapes, copying images to the screen, and rendering text. This chapter will expand upon this, demonstrating a few techniques that will bring our graphics to life. The first section will cover how to make a view respond to mouse events, letting users interact with our customized views. The second section will provide a brief introduction to Core Animation, an exciting technology that lets us create smooth animations with just a few lines of code.
Editing a Curve
Chapter 14 introduced the NSBezierPath class for drawing rounded rectangles, ovals, straight lines, and points. If you’ve used a Bezier drawing ...
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.