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

# NSStepperTouchBarItem

A bar item that provides a stepper control for incrementing or decrementing a value.

```
class NSStepperTouchBarItem
```

## Topics

### Creating a stepper item

[`+  stepperTouchBarItemWithIdentifier:drawingHandler:`](/documentation/AppKit/NSStepperTouchBarItem/init(identifier:drawingHandler:))

Creates a `NSStepperTouchBarItem` using the result of `drawingHandler` to display the stepper’s value as an image.

[`+  stepperTouchBarItemWithIdentifier:formatter:`](/documentation/AppKit/NSStepperTouchBarItem/init(identifier:formatter:))

Creates a `NSStepperTouchBarItem` with a `formatter` to display the stepper’s value as text.

### Handling stepper interaction

[`target`](/documentation/AppKit/NSStepperTouchBarItem/target)

The target object that receives action messages from the stepper.

[`action`](/documentation/AppKit/NSStepperTouchBarItem/action)

The action-message selector associated with the stepper.

### Managing the stepper’s value

[`value`](/documentation/AppKit/NSStepperTouchBarItem/value)

The current value of the stepper.

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

The stepper’s maximum value.

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

The stepper’s minimum value.

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

The stepper’s increment value.

### Configuring bar customization

[`customizationLabel`](/documentation/AppKit/NSStepperTouchBarItem/customizationLabel)

The localized string labeling this item during user customization.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

### Inherits From

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

---

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)