---
title: NSMomentaryPushInButton
framework: appkit
role: symbol
role_heading: Global Variable
path: appkit/nsmomentarypushinbutton
---

# NSMomentaryPushInButton

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

## Declaration

```occ
static const NSButtonType NSMomentaryPushInButton;
```

## Discussion

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

## See Also

### Deprecated Button Types

- [NSMomentaryLightButton](appkit/nsmomentarylightbutton.md)
- [NSPushOnPushOffButton](appkit/nspushonpushoffbutton.md)
- [NSToggleButton](appkit/nstogglebutton.md)
- [NSSwitchButton](appkit/nsswitchbutton.md)
- [NSRadioButton](appkit/nsradiobutton.md)
- [NSMomentaryChangeButton](appkit/nsmomentarychangebutton.md)
- [NSOnOffButton](appkit/nsonoffbutton.md)
- [NSAcceleratorButton](appkit/nsacceleratorbutton.md)
- [NSMultiLevelAcceleratorButton](appkit/nsmultilevelacceleratorbutton.md)
- [NSMomentaryPushButton](appkit/nsmomentarypushbutton.md)
- [NSMomentaryLight](appkit/nsmomentarylight.md)
