close()
Closes all of the document’s windows and removes the document from its document controller.
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.