Instance Method

removeDocument:

Removes the given document from the list of open documents.

Declaration

- (void)removeDocument:(NSDocument *)document;

Parameters

document

The document to remove.

Discussion

A document will automatically call removeDocument: when it closes. This method is mostly provided for subclasses that want to know when documents close.

See Also

Managing Documents

documents

The document objects managed by the receiver.

- addDocument:

Adds the given document to the list of open documents.

currentDocument

The document object associated with the main window.

- documentForWindow:

Returns the document object whose window controller owns a specified window.

hasEditedDocuments

A Boolean value indicating whether the receiver has any documents with unsaved changes.