Contents

parent

The parent window to which the window is attached as a child.

Declaration

weak var parent: NSWindow? { get set }

Discussion

This property should be set from a subclass when it is overridden by a subclass’s implementation. It should not be set otherwise.

Note that calling orderOut(_:) on a child window causes the window to be removed from its parent window before it is itself removed.

See Also

Managing Attached Windows