Version: 1.0

Posted: 2003-07-17

Build Requirements: N/A

Runtime Requirements: Mac OS X Project Builder, Mac OS X

View Source Code:

Download Sample (“Cocoa_CG_arc_demo.zip”, 19.1K)
Download Sample (“Cocoa_CG_arc_demo.dmg”, 77.5K)



Description

The Cocoa CG arc demo shows how to draw both aliased and anti-aliased arcs. The graphics drawing functions are contained within the MyQuartzView.m file in the drawRect: method. This sample is based on a Cocoa CG Shell project that simply shows a window with an embedded NSView subclass called MyQuartzView to hold the custom drawing. While the project itself is Cocoa based, the CG code contained within the drawRect: method is straightforward, easily reused, and fully applicable to Carbon as well. Requirements: Project Builder, Mac OS X Keywords: Cocoa CG Core Graphics Quartz 2D arc

Document Revision History

Date Notes
2003-07-17Shows how to draw both aliased and anti-aliased arcs using Quartz and Cocoa.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.