Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
readme.txt
The Cocoa CG aliasing demo shows how to draw both aliased and anti-aliased text and graphics. 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. |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-07-17