Contents

setAlternateButtonTitle(_:)

Customizes the title of the alternate button.

Declaration

func setAlternateButtonTitle(_ title: String!)

Parameters

  • title:

    The new title for the alternate button. If this method is not called, or if title is set to nil, the button is not shown.

Discussion

The alternate button is typically labelled “Cancel”. The alternate button dismisses the sheet or panel and returns a value of NSCancelButton.

See Also

Customizing the Appearance of the Sheet or Panel