Version: 1.0

Posted: 2009-05-26

Build Requirements: Xcode 3.2 or later, Mac OS X v10.6 or later

Runtime Requirements: Mac OS X v10.6 or later

View Source Code:

Download Sample Code (“ClockControl.zip”, 82.0K)



Description

This sample demonstrate how to create a custom control. It creates a clock control, which is implemented as a subclass of NSControl and NSCell, ClockControl, and ClockCell, respectively. Most of the work is done in the cell. This sample demonstrates the use of this cell in a NSMatrix, NSTableView, and its native control, ClockControl.

Document Revision History

Date Notes
2009-05-26Demonstrates how to create a custom control.