newDocument(_:)
An action method called by the New menu command, this method creates a new NSDocument object and adds it to the list of such objects managed by the document controller.
Declaration
@IBAction func newDocument(_ sender: Any?)Discussion
This method calls openUntitledDocumentAndDisplay(_:).