Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Version 1.0, 2009-05-26
Demonstrates how to create a custom control.
Xcode 3.2 or later, Mac OS X v10.6 or later
Mac OS X v10.6 or later
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.