Instance Property

documents

The document objects managed by the receiver.

Declaration

@property(readonly, copy) NSArray<__kindof NSDocument *> *documents;

Discussion

The array contains zero or more NSDocument objects.

See Also

Managing Documents

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

- removeDocument:

Removes the given document from the list of open documents.