Contents

endSheet(_:returnCode:)

Ends a document modal session by specifying the sheet window.

Declaration

func endSheet(_ sheet: NSWindow, returnCode: Int)

Parameters

  • sheet:

    The sheet whose modal session you want to end.

  • returnCode:

    The return code to send to the delegate. You can use one of the return codes defined in Modalresponse or a custom value that you define.

See Also

Methods