Instance Method


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.


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 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.