Enumeration

NSButtonType

Button types that can be specified using setButtonType:.

Declaration

typedef enum NSButtonType : NSUInteger {
    ...
} NSButtonType;

Overview

For examples of how these types behave, see Button Programming Topics.

Topics

Constants

NSMomentaryLightButton

When the button is clicked (on state), it appears illuminated. If the button has borders, it may also appear recessed. When the button is released, it returns to its normal (off) state.

Deprecated
NSPushOnPushOffButton

When the button is clicked (on state), it appears illuminated. If the button has borders, it may also appear recessed. A second click returns it to its normal (off) state.

Deprecated
NSToggleButton

After the first click, the button displays its alternate image or title (on state); a second click returns the button to its normal (off) state.

Deprecated
NSSwitchButton

This style is a variant of NSToggleButton that has no border and is typically used to represent a checkbox.

Deprecated
NSRadioButton

This style is similar to NSSwitchButton, but it is used to constrain a selection to a single element from several elements.

Deprecated
NSMomentaryChangeButton

When the button is clicked, the alternate (on state) image and alternate title are displayed.

Deprecated
NSOnOffButton

The first click highlights the button; a second click returns it to the normal (unhighlighted) state.

Deprecated
NSAcceleratorButton

On pressure-sensitive systems, such as systems with the Force Touch trackpad, an accelerator button sends repeating actions as pressure changes occur. It stops sending actions when the user releases pressure entirely. A media player app, for example, might implement an accelerator button in order to allow a user to adjust the speed of fast forward or rewind with variable pressure. In this case, actions are sent to the app to indicate when pressure on the button has changed. The app would then determine the amount of pressure currently applied, and adjust playback speed accordingly.

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

Deprecated
NSMomentaryPushInButton

When the user clicks the button (on state), the button appears illuminated.

Deprecated
NSMomentaryPushButton

When the button is clicked (on state), it appears illuminated. If the button has a bordered, it may also appear recessed. When the button is released, it returns to its normal (off) state.

Deprecated
NSMomentaryLight

When the button is clicked (on state), it appears illuminated.

Deprecated