Instance Method

setWindow:

Sets the window outlet of this document to the specified value.

Declaration

- (void)setWindow:(NSWindow *)window;

Parameters

aWindow

The window to which the receiver’s window outlet points.

Discussion

This method is invoked automatically during the loading of any nib for which this document is the file’s owner, if the file’s owner window outlet is connected in the nib. You should not invoke this method directly, and typically you would not override it either.

See Also

Managing Document Windows

- showWindows

Displays all of the document’s windows, bringing them to the front and making them main or key as necessary.

windowForSheet

Returns the document window to use as the parent of a document-modal sheet.

displayName

The name of the document as displayed in the title bars of the document’s windows and in alert dialogs related to the document.

- setDisplayName:

Sets the name of this document for presentation to the user.

- defaultDraftName

Returns the default draft name for the document subclass.

- encodeRestorableStateWithCoder:backgroundQueue:

Saves the interface-related state of the document.