Class

NSDatePicker

A display of a calendar date with controls for editing the date value.

Declaration

@interface NSDatePicker : NSControl

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.

Topics

Configuring Date Pickers

bezeled

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

bordered

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

backgroundColor

The date picker’s background color.

drawsBackground

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

textColor

The date picker’s text color.

datePickerStyle

The date picker’s style.

delegate

A delegate for the date picker’s cell

datePickerElements

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

NSDatePickerElementFlags

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

NSDatePickerStyle

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

Controlling Date Picker Range and Mode

calendar

The calendar used by the date picker.

locale

The date picker’s locale.

datePickerMode

The date picker’s mode.

timeZone

The time zone for the date picker.

NSDatePickerMode

Constants that define whether the picker provides a single date, or a range of dates.

Accessing Object Values

dateValue

The date selected by the date picker.

timeInterval

The time interval selected by the date picker.

Constraining the Displayable/Selectable Range

minDate

The date picker’s minimum date value.

maxDate

The date picker’s maximum date value.

Relationships

Inherits From