Version: 1.0

Posted: 2003-02-25

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X 10.2.x, Project Builder 2.1 and up

View Source Code:

Download Sample (“Clock_Control.zip”, 191.1K)
Download Sample (“Clock_Control.dmg”, 237.5K)



Description

In this sample we demonstrate how to create a custom control by creating a clock control. The clock control is implemented as a subclass of NSControl and NSCell, ClockControl and ClockCell respectively. Most of the work is done in the cell. Because the cell handles all of the work, we are able to demonstrate use of this cell in a NSMatrix, NSTableView, and it's native control, ClockControl. Requirements: Mac OS X 10.2.x, Project Builder 2.1 and up Keywords: nscell nscontrol clock cocoa

Document Revision History

Date Notes
2003-02-25Demonstrates creating a custom control by creating a clock control, implemented as a subclass of NSControl and NSCell.

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.