NSStepper Class Reference
| Inherits from | |
| Conforms to | |
| Framework | /System/Library/Frameworks/AppKit.framework |
| Availability | Available in OS X v10.0 and later. |
| Companion guide | |
| Declared in | NSStepper.h |
Overview
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.
Instance Methods
autorepeat
Returns a Boolean value indicating how the receiver responds to mouse events.
Return Value
YES if the first mouse down does one increment (or decrement) and, after a delay of 0.5 seconds, increments (or decrements) at a rate of ten times per second. NO if the receiver does one increment (decrement) on a mouse up. The default is YES.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hincrement
Returns the amount by which the receiver will change per increment (decrement).
Return Value
The amount by which the receiver changes with each increment or decrement. The default is 1.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hmaxValue
Returns the maximum value for the receiver.
Return Value
The maximum value. The default is 59.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hminValue
Returns the minimum value for the receiver.
Return Value
The minimum value. The default is 0.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hsetAutorepeat:
Sets how the receiver responds to mouse events.
Parameters
- autorepeat
If
YES, the first mouse down does one increment (decrement) and, after a delay of 0.5 seconds, increments (decrements) at a rate of ten times per second. If autorepeat isNO, the receiver does one increment (decrement) on a mouse up.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hsetIncrement:
Sets the amount by which the receiver will change per increment (decrement).
Parameters
- increment
The amount by which the receiver changes with each decrement or increment.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hsetMaxValue:
Sets the maximum value for the receiver
Parameters
- maxValue
The new maximum value.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hsetMinValue:
Sets the minimum value for the receiver
Parameters
- minValue
The new minimum value.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hsetValueWraps:
Sets whether the receiver wraps around the minimum and maximum values.
Parameters
- valueWraps
If
YES, then when incrementing or decrementing, the value wraps around to the minimum or maximum. If valueWraps isNO, the value stays pinned at the minimum or maximum.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.hvalueWraps
Returns a Boolean value indicating whether the receiver wraps around the minimum and maximum values.
Return Value
YES if, when incrementing or decrementing, the value wraps around to the minimum or maximum. NO if the value stays pinned at the minimum or maximum. The default is YES.
Availability
- Available in OS X v10.0 and later.
See Also
Declared In
NSStepper.h© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)