Contents

endSheet(_:)

Ends a document-modal session and dismisses the specified sheet.

Declaration

func endSheet(_ sheetWindow: NSWindow)

Parameters

  • sheetWindow:

    The window object that represents the sheet to be dismissed.

Discussion

This method ends the modal session with the return code NSModalResponseStop.

See Also

Managing Sheets