Structure

NSDatePicker.ElementFlags

Constants that specify the date and time elements displayed by the picker.

Overview

You can combine these constants using the C bitwise OR operator.

Topics

Constants

static var hourMinuteDatePickerElementFlag: NSDatePicker.ElementFlags

Display and allow editing of the hour and minute elements of the date.

static var hourMinuteSecondDatePickerElementFlag: NSDatePicker.ElementFlags

Display and allow editing of the hour, minute and second elements of the date.

static var yearMonthDatePickerElementFlag: NSDatePicker.ElementFlags

Display and allow editing of the year and month elements of the date.

static var yearMonthDayDatePickerElementFlag: NSDatePicker.ElementFlags

Display and allow editing of the year, month and day elements of the date.

static var eraDatePickerElementFlag: NSDatePicker.ElementFlags

Display and allow editing of the era of the date, if applicable.

Relationships

Conforms To

See Also

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: NSDatePicker.Style

The date picker’s style.

var delegate: NSDatePickerCellDelegate?

A delegate for the date picker’s cell

var datePickerElements: NSDatePicker.ElementFlags

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

enum NSDatePicker.Style

Constants that define the visual appearance of the date picker cell.