Writes the contents of the document to a file or file package located by a URL, formatted to a specified type.
- macOS 10.4+
The location to which the document contents are written.
The string that identifies the document type.
On return, if the document contents could not be written, a pointer to an error object that encapsulates the reason they could not be written.
YES if the document contents could be written; otherwise,
The default implementation of this method just invokes
[self file and writes the returned file wrapper to disk.
For backward binary compatibility with OS X v10.3 and earlier, the default implementation of this method instead invokes
[self write if
write is overridden and the URL uses the