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 Code (“SpeedometerView.zip”, 78.1K)



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.