<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSRadioButton",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSRadioButton"
  },
  "title" : "NSRadioButton"
}
-->

# NSRadioButton

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

```
static const NSButtonType NSRadioButton;
```

## Discussion

You typically use this type of button in a group formed by an instance of [`NSMatrix`](/documentation/AppKit/NSMatrix). In Interface Builder, a matrix of this type of button is available as a separate Library item.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)