Global Variable


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


const NSButtonType NSMomentaryPushInButton;


This type of button is best for simply triggering actions, as it doesn’t show its state; it always displays its normal image or title. This option is called Momentary Push In in Interface Builder’s Button inspector.

Most buttons in macOS, such as Cancel button in many dialogs, are momentary light buttons. If you click one, it highlights briefly, triggers an action, and returns to its original state.

This button type is the default.