Contents

isReleasedWhenClosed

A Boolean value that indicates whether the window is released when it receives the close message.

Declaration

var isReleasedWhenClosed: Bool { get set }

Discussion

The value of this property is true if the window is automatically released after being closed; false if it’s simply removed from the screen.

The default for NSWindow is true; the default for NSPanel is false. Release when closed, however, is ignored for windows owned by window controllers.

See Also

Closing Windows