Version: 1.0

Posted: 2007-02-28

Build Requirements: Xcode 3.0 (or the latest)

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“Grady.zip”, 71.7K)
Download Sample (“Grady.dmg”, 118.9K)



Description

"Grady" is a Cocoa application that demonstrates how to use the NSGradient class. The NSGradient class provides support for drawing gradient fill colors, also known as shadings in Quartz. This class provides convenience methods for drawing radial or linear (axial) gradients for rectangles and NSBezierPath objects. This sample is intended to show how to use the many different features and aspects of this rendering class.

Document Revision History

Date Notes
2007-02-28Demonstrates how to use the NSGradient class.

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.