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

# maxAcceleratorLevel

An integer value indicating the maximum pressure level for a button of type [`NSMultiLevelAcceleratorButton`](/documentation/AppKit/NSMultiLevelAcceleratorButton).

```
var maxAcceleratorLevel: Int { get set }
```

## Discussion

A multilevel accelerator button is a variation of a standard accelerator button that allows for a configurable number of stepped pressure levels in a system that supports pressure-sensitivity, such as the Force Touch trackpad. As each level is reached, the user receives light tactile feedback, and an action is sent.

You configure the number of pressure levels for a multilevel accelerator button by adjusting the value of [`maxAcceleratorLevel`](/documentation/AppKit/NSButton/maxAcceleratorLevel). For other types of buttons, this property value defaults to `1`. For multilevel accelerator buttons, this property value defaults to `2`, and may be set to a value between `1` and `5`.

The behavior of a multilevel accelerator button is reliant on a system that supports pressure sensitivity. On a system that doesn’t support pressure sensitivity, a multilevel accelerator button always has a value of `1` when the user clicks it.

## See Also

[`static const NSButtonType NSMultiLevelAcceleratorButton;`](/documentation/AppKit/NSMultiLevelAcceleratorButton)

A multilevel accelerator button is a variation of a normal accelerator button that allows for a configurable number of stepped pressure levels. As each one is reached, the user receives light tactile feedback and an action is sent.

[`static const NSButtonType NSAcceleratorButton;`](/documentation/AppKit/NSAcceleratorButton)

A button that sends an action when the user first clicks the button and continues sending actions until the user releases pressure entirely.



---

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)