The tiny paired arrows are the stepper — click, or hold for autorepeat
Stepper
/ NSStepper · Stepper /
also called stepper control, stepper arrows, numeric stepper, incrementer
A stepper is a pair of small stacked arrow buttons for changing a value by a fixed increment. It commonly sits beside a numeric text field so users can either type an exact value or adjust it one step at a time. Its enabled states should reflect the configured minimum and maximum, and holding an arrow can repeat the change.
If you called it…
…you meant a stepper.
Anatomy — every part, named
Prompt — paste into your agent
Place a native Stepper using NSStepper (SwiftUI: Stepper) beside the numeric field, with the compact up/down arrow pair vertically aligned to that field. Bind both controls to the same value and enforce the intended increment, minimum, and maximum.
Debug prompt — when it misbehaves
Paste this, then describe what you’re seeing — it hands your agent the classic failure modes to rule out first.
Debug my macOS stepper (NSStepper, SwiftUI Stepper). Rule out: the stepper and its text field not bound to the same value so they drift; valueWraps looping from max back to min; autorepeat firing continuously while held when single steps were expected; a number formatter clamping or rejecting the value the stepper just set. The symptom:
In code
The exact names this thing goes by in code — each row is one framework’s word for it. Use the row that matches your project (or paste it into your prompt).
| AppKit | NSStepper | |
| SwiftUI | Stepper | |
| AppKit | NSStepper.increment | |
| AppKit | NSStepper.minValue | |
| AppKit | NSStepper.maxValue |