Class

NSDatePicker

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

Overview

NSDatePicker uses an NSDatePickerCell to implement much of the control’s functionality. NSDatePicker provides cover methods for most of NSDatePickerCell methods, which invoke the corresponding cell method.

Symbols

Configuring Date Pickers

var isBezeled: Bool

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

var isBordered: Bool

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

var backgroundColor: NSColor

The date picker’s background color.

var drawsBackground: Bool

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

var textColor: NSColor

The date picker’s text color.

var datePickerStyle: NSDatePickerStyle

The date picker’s style.

var delegate: NSDatePickerCellDelegate?

A delegate for the date picker’s cell

var datePickerElements: NSDatePickerElementFlags

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 datePickerMode: NSDatePickerMode

The date picker’s mode.

var timeZone: TimeZone?

The time zone for the date picker.

Accessing Object Values

var dateValue: Date

The date selected by the date picker.

var timeInterval: TimeInterval

The time interval selected by the date picker.

Constraining the Displayable/Selectable Range

var minDate: Date?

The date picker’s minimum date value.

var maxDate: Date?

The date picker’s maximum date value.

Relationships

Inherits From

Conforms To