Instantiates a new untitled document of the specified type and returns it if successful.
- macOS 10.4+
The type of the document.
The document type is specified by
type. If not successful, the method returns
nil after setting
out to point to an
NSError object that encapsulates the reason why a new untitled document could not be instantiated. The default implementation of this method calls
document to find out the class of document to instantiate, then allocates and initializes a document by sending it