Retired Document
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.
ClockControl
Last Revision: | Version 1.0, 2009-05-26 Demonstrates how to create a custom control. |
Build Requirements: | Xcode 3.2 or later, Mac OS X v10.6 or later |
Runtime Requirements: | 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.
Copyright © 2009 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2009-05-26