Instance Property


The alert’s suppression checkbox.


@property(readonly, strong) NSButton *suppressionButton;


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

Runs the alert as an app-modal dialog and returns the constant that identifies the button clicked.

- beginSheetModalForWindow:completionHandler:

Runs the alert modally as a sheet attached to the specified window.

- beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:

Runs the alert modally as an alert sheet attached to a specified window.


Specifies whether the alert includes a suppression checkbox, which you can employ to allow a user to opt out of seeing the alert again.