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

Creates the window controller objects that the document uses to display its content.

- addWindowController:

Adds the specified window controller to the current document.

- removeWindowController:

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

windowNibName

The name of the document’s sole nib file.

- windowControllerDidLoadNib:

Called after one of the document's window controllers loads its nib file.

- windowControllerWillLoadNib:

Called before one of the document's window controllers loads its nib file.

- shouldCloseWindowController:delegate:shouldCloseSelector:contextInfo:

Determines whether the system should close the document and its associated window.