Quartz Graphics Via the Application Kit

The Application Kit provides several classes to assist in using Quartz to draw 2D graphics. It also provides functions that can be used to do some basic, common drawing tasks, such as rapidly drawing rectangles.

NOTE

Many Application Kit classes support Quartz drawing. For managing and drawing bitmaps, there is NSImage and several NSImageRep subclasses. To draw lines, rectangles, arcs, curves, polygons, and more, there is NSBezierPath. To adjust the parameters of the current graphics context, use the NSGraphicsContext and NSAffineTransform classes. To draw simple text, use the methods added to NSString and NSAttributedString by the Application Kit in the NSStringDrawing categories. If more complex or more ...

Get Cocoa® Programming 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.