Discards all unsaved document modifications and replaces the document’s contents by reading a file or file package located by a URL of a specified type.
- macOS 10.4+
The location from which the document contents are read.
The string that identifies the document type.
On return, if the document could not be reverted, a pointer to an error object that encapsulates the reason it could not be reverted.
true if the document could be reverted; otherwise,