Sets the contents of this document by reading from data of a specified type and returns
true if successful.
- macOS 10.4+
The data object from which the document contents are read.
The string that identifies the document type.
On return, if the document contents could not be read, a pointer to an error object that encapsulates the reason they could not be read.
true if the document contents could be read; otherwise,