Subclasses may override this method to create the initial window controller(s) for the document.
- macOS 10.0+
The base class implementation creates an
NSWindow object with
window and with the document as the file’s owner if
window returns a name. If you override this method to create your own window controllers, be sure to use
add to add them to the document after creating them.
This method is called by the
open... methods, but you might want to call it directly in some circumstances.