Iterates through all the open documents and tries to close them one by one using the specified delegate.
- macOS 10.0+
The object responsible for closing the document.
The selector to call after all documents have been closed.
A pointer to user-supplied data.
NSDocument object is sent
can, which, if the document is dirty, gives it a chance to refuse to close or to save itself first. This method may ask whether to save or to perform a save.
did callback method is called with
true if all documents are closed, and
false otherwise. Pass the
context object with the callback. The
did callback method should have the following signature: