Contents

openUntitledDocumentOfType:display:

Returns a document object instantiated from the subclass of the given document type and optionally displays it.

Declaration

- (id) openUntitledDocumentOfType:(NSString *) type display:(BOOL) display;

Discussion

Returns an NSDocument object instantiated from the NSDocument subclass required by document type docType and displays it if flag is true. The returned object is not retained, but is added to the receiver’s list of managed documents. Returns nil if the object could not be created, typically because no NSDocument subclass could be found for docType. Even if flag is true, the document is not displayed if shouldCreateUI returns false. This method calls makeUntitledDocumentOfType: to obtain the created NSDocument object.

See Also

Deprecated Methods