DatePicker: Using NSDatePicker control to display date and time
Last Revision: | Version 4.0, 2018-05-03 Upgraded for macOS 10.13 SDK, replaced deprecated APIs, replaced use of NSMatrix, now using modern Objective-C syntax, and storyboard. (Full Revision History) |
Build Requirements: | macOS 10.13 SDK or later |
Runtime Requirements: | Mac OS X 10.10 or later |
DatePicker is a Cocoa sample application that demonstrates how to use NSDatePicker control on macOS. NSDatePicker is a subclass of NSControl that provides for visually displaying and editing an NSDate instance. It also demonstrates how to use NSDateFormatter for rendering date and time strings.
Copyright © 2018 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2018-05-03