Instance Method

drawerShouldClose:

Asks the delegate if the specified drawer should close.

Declaration

- (BOOL)drawerShouldClose:(NSDrawer *)sender;

Parameters

sender

The drawer being closed.

Return Value

YES to allow the drawer to close; NO to prevent it from closing.

Discussion

This method is invoked on user-initiated attempts to close a drawer by dragging it or when the NSDrawerDelegate method is called.

See Also

Opening and Closing Drawers

- drawerShouldOpen:

Asks the delegate if the specified drawer should open.

Deprecated
- drawerWillOpen:

Notifies the delegate that the drawer will open.

Deprecated
- drawerDidOpen:

Notifies the delegate that the drawer has opened.

Deprecated
- drawerWillClose:

Notifies the delegate the drawer will close.

Deprecated
- drawerDidClose:

Notifies the delegate that the drawer has closed.

Deprecated