Instance Method

windowShouldClose:

Tells the delegate that the user has attempted to close a window or the window has received a performClose: message.

Declaration

- (BOOL)windowShouldClose:(NSWindow *)sender;

Parameters

sender

The window being closed.

Return Value

YES to allow sender to be closed; otherwise, NO.

Discussion

This method may not always be called during window closing. Specifically, this method is not called when a user quits an application.

See Also

Closing Windows

- windowWillClose:

Tells the delegate that the window is about to close.