Instance Method

makeWindowControllers

Subclasses may override this method to create the initial window controller(s) for the document.

Declaration

- (void)makeWindowControllers;

Discussion

The base class implementation creates an NSWindowController object with windowNibName and with the document as the file’s owner if windowNibName returns a name. If you override this method to create your own window controllers, be sure to use addWindowController: to add them to the document after creating them.

This method is called by the NSDocumentController open... methods, but you might want to call it directly in some circumstances.

See Also

Creating and Managing Window Controllers

windowNibName

The name of the document’s sole nib file.

- windowControllerDidLoadNib:

Sent after the specified window controller loads a nib file if the receiver is the nib file’s owner.

- windowControllerWillLoadNib:

Sent before the specified window controller loads a nib file if the receiver is the nib file’s owner.

windowControllers

The document’s current window controllers.

- addWindowController:

Adds the specified window controller to this document’s list of attached window controllers and sets the document of the passed-in window controller.

- removeWindowController:

Removes the specified window controller from the receiver’s array of window controllers.

- shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:

Invokes shouldCloseSelector with the result of canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: if the specified window controller that is closing is the last one or is marked as causing the document to close.