Saves the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation.
- macOS 10.4+
The location of the file or file package to which the document contents are saved.
The string that identifies the document type.
The type of save operation.
The delegate to which the selector message is sent.
The selector of the message sent to the delegate.
Object passed with the callback to provide any additional context information.
When saving is completed, regardless of success or failure, the method sends the message selected by
did to the
delegate, with the
context as the last argument. The method selected by
did must have the same signature as:
The default implementation of this method invokes
[self save and, if
NO is returned, presents the error to the user in a document-modal panel before messaging the delegate.