Instance Method

close()

Closes all windows owned by the receiver and removes the receiver from the list of documents maintained by the document controller, which consequently releases it.

Declaration

func close()

Discussion

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 Documents

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

If the receiver is not dirty, this method immediately calls the shouldCloseSelector callback on the specified delegate with true.