Creates a new untitled document, presents its user interface if
true, and returns the document if successful.
- macOS 10.4+
trueif the user interface for the document should be shown, otherwise
On return, an error if the document could not be created, otherwise
Returns the new
NSDocument object, or
nil if a new untitled document could not be created. If this method returns
nil, it also sets the address referenced by
out to an
NSError object that tell why the document could not be created.
The default implementation of this method calls
default to determine the type of new document to create, calls
make to create it, then calls
add to record its opening.
true, this method sends the new document
show messages. In this scenario,
show shows only the window controllers that have been assigned to the document.