Class

NSDate​Picker

NSDate​Picker is a subclass of NSControl that provides a user interface for displaying and editing an NSDate object.

Overview

NSDate​Picker uses an NSDate​Picker​Cell to implement much of the control’s functionality. NSDate​Picker provides cover methods for most of NSDate​Picker​Cell methods, which invoke the corresponding cell method.

Symbols

Configuring Date Pickers

var is​Bezeled:​ Bool

A Boolean value that indicates whether the date picker draws a bezeled border.

var is​Bordered:​ Bool

A Boolean value that indicates whether the date picker has a plain border.

var background​Color:​ NSColor

The date picker’s background color.

var draws​Background:​ Bool

A Boolean value that indicates whether the date picker draws the background.

var text​Color:​ NSColor

The date picker’s text color.

var delegate:​ NSDate​Picker​Cell​Delegate?

A delegate for the date picker’s cell

var date​Picker​Elements:​ NSDate​Picker​Element​Flags

A bitmask that indicates which visual elements of the date picker are currently shown, and which won't be usable because they are hidden.

Controlling Date Picker Range and Mode

var calendar:​ Calendar?

The calendar used by the date picker.

var locale:​ Locale?

The date picker’s locale.

var time​Zone:​ Time​Zone?

The time zone for the date picker.

Accessing Object Values

var date​Value:​ Date

The date selected by the date picker.

var time​Interval:​ Time​Interval

The time interval selected by the date picker.

Constraining the Displayable/Selectable Range

var min​Date:​ Date?

The date picker’s minimum date value.

var max​Date:​ Date?

The date picker’s maximum date value.