Contents

setWindow(_:)

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

Declaration

func setWindow(_ window: NSWindow?)

Parameters

  • window:

    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