Instance Property

windowControllers

The document’s current window controllers.

Declaration

@property(readonly, copy) NSArray<__kindof NSWindowController *> *windowControllers;

Discussion

The value of this property is an array of NSWindowController objects belonging to the current document. If there are no window controllers, the value is an empty array object.

See Also

Creating and Managing Window Controllers

- makeWindowControllers

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

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.

- 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.