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

```
static const NSButtonType NSToggleButton;
```

## Discussion

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

---

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)