---
title: NSRadioButton
framework: appkit
role: symbol
role_heading: Global Variable
path: appkit/nsradiobutton
---

# NSRadioButton

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

## Declaration

```occ
static const NSButtonType NSRadioButton;
```

## Discussion

Discussion You typically use this type of button in a group formed by an instance of NSMatrix. In Interface Builder, a matrix of this type of button is available as a separate Library item.

## See Also

### Deprecated Button Types

- [NSMomentaryLightButton](appkit/nsmomentarylightbutton.md)
- [NSPushOnPushOffButton](appkit/nspushonpushoffbutton.md)
- [NSToggleButton](appkit/nstogglebutton.md)
- [NSSwitchButton](appkit/nsswitchbutton.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)
