Instance Property


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


@property(getter=isReleasedWhenClosed) BOOL releasedWhenClosed;


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

The default for NSWindow is YES; the default for NSPanel is NO. Release when closed, however, is ignored for windows owned by window controllers. Another strategy for releasing an NSWindow object is to have its delegate autorelease it on receiving a windowShouldClose: message.

See Also

Closing Windows

- performClose:

This action method simulates the user clicking the close button by momentarily highlighting the button and then closing the window.

- close

Removes the window from the screen.