Instance Property

maxAcceleratorLevel

An integer value indicating the maximum pressure level for a button of type NSMultiLevelAcceleratorButton.

Declaration

@property NSInteger maxAcceleratorLevel;

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

Configuring Buttons

- setButtonType:

Sets the button’s type, which affects its user interface and behavior when clicked.

- getPeriodicDelay:interval:

Returns by reference the delay and interval periods for a continuous button.

- setPeriodicDelay:interval:

Sets the message delay and interval periods for a continuous button.

alternateTitle

The title that the button displays when the button is in an on state.

attributedTitle

The title that the button displays in an off state, as an attributed string.

attributedAlternateTitle

The title that the button displays as an attributed string when the button is in an on state.

title

The title displayed on the button when it’s in an off state.

- setTitleWithMnemonic:

Sets the title of a button with a character denoting an access key.

Deprecated
sound

The sound that plays when the user clicks the button.

springLoaded

A Boolean value that indicates whether spring loading is enabled for the button.