Instance Method


Closes all of the document's windows and removes the document from its document controller.


func close()


This method closes the document immediately, without asking users if they want to save the document. This method may not always be called.

See Also

Closing the Document

func canClose(withDelegate: Any, shouldClose: Selector?, contextInfo: UnsafeMutableRawPointer?)

Determines whether to close the document, prompting the user as needed to choose a course of action.