Instance Property


Indicates the alert’s severity level.


var alertStyle: NSAlert.Style { get set }


See the NSAlert.Style enumeration for the list of alert style constants.

See Also

Configuring Alerts

func layout()

Specifies that the alert must do immediate layout instead of lazily just before display.

var accessoryView: NSView?

The alert’s accessory view.

var showsHelp: Bool

Specifies whether the alert has a help button.

var helpAnchor: NSHelpManager.AnchorName?

The alert’s HTML help anchor.

var delegate: NSAlertDelegate?

The alert’s delegate.