---
title: NSToggleButton
framework: appkit
role: symbol
role_heading: Global Variable
path: appkit/nstogglebutton
---

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

## Declaration

```occ
static const NSButtonType NSToggleButton;
```

## Discussion

Discussion This option is called Toggle in Interface Builder’s Button inspector.

## See Also

### Deprecated Button Types

- [NSMomentaryLightButton](appkit/nsmomentarylightbutton.md)
- [NSPushOnPushOffButton](appkit/nspushonpushoffbutton.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)
- [NSMomentaryPushInButton](appkit/nsmomentarypushinbutton.md)
- [NSMomentaryPushButton](appkit/nsmomentarypushbutton.md)
- [NSMomentaryLight](appkit/nsmomentarylight.md)
