Initializes a document located by a URL of a specified type, but by reading the contents for the document from a different URL.
- macOS 10.4+
The URL where the document is located.
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,
absolute argument is
nil if the initializing is part of the reopening of an autosaved document when the autosaved document was never explicitly saved.
During reopening of autosaved documents, this method uses the following
NSDocument constant to indicate that an autosaved document is being reopened: