<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSAlert/suppressionButton",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSAlert(py)suppressionButton"
  },
  "title" : "suppressionButton"
}
-->

# suppressionButton

The alert’s suppression checkbox.

```
var suppressionButton: NSButton? { get }
```

## Discussion

If you want to customize an alert’s suppression checkbox, access it via this property and then use the methods of the [`NSButton`](/documentation/AppKit/NSButton) class. For example, you can do this to change the suppression checkbox’s default message, or to change its initial selection state (which is “unselected” by default). For a code example, see the [`showsSuppressionButton`](/documentation/AppKit/NSAlert/showsSuppressionButton) property.

---

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)