<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSStepper",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSStepper"
  },
  "title" : "NSStepper"
}
-->

# NSStepper

An interface with up and down arrow buttons for incrementing or decrementing a value.

```
class NSStepper
```

## 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.

![](images/com.apple.appkit/media-2555815@2x.png)

The `NSStepper` class uses the [`NSStepperCell`](/documentation/AppKit/NSStepperCell) class to implement its user interface.

## Topics

### Configuring the Cell

[`NSStepperCell`](/documentation/AppKit/NSStepperCell)

An `NSStepperCell` object controls the appearance and behavior of an [`NSStepper`](/documentation/AppKit/NSStepper) object.

### Specifying value range

[`maxValue`](/documentation/AppKit/NSStepper/maxValue)

The stepper’s maximum value.

[`minValue`](/documentation/AppKit/NSStepper/minValue)

The stepper’s minimum value.

[`increment`](/documentation/AppKit/NSStepper/increment)

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

### Specifying how the stepper responds

[`autorepeat`](/documentation/AppKit/NSStepper/autorepeat)

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

[`valueWraps`](/documentation/AppKit/NSStepper/valueWraps)

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)