<!--
{
  "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.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

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

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

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

[`Hashable`](/documentation/Swift/Hashable)

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

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

[`Sendable`](/documentation/Swift/Sendable)

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

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

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

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

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

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

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

### Inherits From

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

---

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)