<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSButton/ButtonType/pushOnPushOff",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSButtonType@NSButtonTypePushOnPushOff"
  },
  "title" : "NSButton.ButtonType.pushOnPushOff"
}
-->

# NSButton.ButtonType.pushOnPushOff

A button that switches between on and off states with each click.

```
case pushOnPushOff
```

## Discussion

When [`state`](/documentation/AppKit/NSButton/state) is [`on`](/documentation/AppKit/NSControl/StateValue/on), the button appears illuminated. If the button has borders, it may also appear recessed. A second click returns the button’s [`state`](/documentation/AppKit/NSButton/state) to [`off`](/documentation/AppKit/NSControl/StateValue/off).

This option corresponds to the Push On Push Off type in Interface Builder’s Attributes 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)