Initializes a document located by a URL of a specified type.
- macOS 10.4+
The URL from which the contents of the document are obtained.
The string that identifies the document type.
On return, if initialization is unsuccessful, a pointer to an error object that encapsulates the reason the document could not be created.
NSDocument object, or, if the document could not be created,
You can override this method to customize the reopening of autosaved documents.
This method is invoked by the
make. The default implementation of this method calls the
read(from: methods and sets values for the
For backward binary compatibility with OS X v10.3 and earlier, the default implementation of this method instead invokes
init if it is overridden and the URL uses the
file: scheme. It still updates the
file property in this situation.