A stepper consists of two small arrows that can increment and decrement a value that appears beside it, such as a date or time. The illustration below shows a stepper to the right of a text field, which would show the stepper’s value.


The NSStepper class uses the NSStepperCell class to implement its user interface.


Specifying value range

var maxValue: Double

The stepper’s maximum value.

var minValue: Double

The stepper’s minimum value.

var increment: Double

The amount by which the receiver changes with each increment or decrement.

Specifying how the stepper responds

var autorepeat: Bool

A Boolean value that indicates how the stepper responds to mouse events.

var valueWraps: Bool

A Boolean value that indicates whether the stepper wraps around the minimum and maximum values.