Version: 1.1

Posted: 2007-06-06

Build Requirements: Xcode 2.4.1

Runtime Requirements: Mac OS X 10.4

View Source Code:

Download Sample (“SpeedometerView.zip”, 78.1K)
Download Sample (“SpeedometerView.dmg”, 127.7K)



Description

This sample shows how to make a custom NSView that can respond to mouse clicks. It draws a speedometer like view displaying values between 0 and 100.

This sample includes code showing how to convert a NSString into a NSBezierPath.

Document Revision History

Date Notes
2007-06-06Updated NSString to NSBezierPath conversion routine.
2007-06-04Shows how to make a custom NSView.

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.