---
title: suppressionButton
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsalert/suppressionbutton
---

# suppressionButton

The alert’s suppression checkbox.

## Declaration

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

## Discussion

Discussion If you want to customize an alert’s suppression checkbox, access it via this property and then use the methods of the 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 property.

## See Also

### Displaying Alerts

- [runModal()](appkit/nsalert/runmodal().md)
- [beginSheetModal(for:completionHandler:)](appkit/nsalert/beginsheetmodal(for:completionhandler:).md)
- [beginSheetModal(for:modalDelegate:didEnd:contextInfo:)](appkit/nsalert/beginsheetmodal(for:modaldelegate:didend:contextinfo:).md)
- [showsSuppressionButton](appkit/nsalert/showssuppressionbutton.md)
