Contents

drawerShouldOpen(_:)

Asks the delegate if the specified drawer should open.

Declaration

optional func drawerShouldOpen(_ sender: NSDrawer) -> Bool

Parameters

  • sender:

    The drawer requesting permission to open.

Return Value

true if the drawer should open; false to prevent the drawer from opening.

Discussion

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

See Also

Related Documentation

  • Drawer Programming Topics

Opening and Closing Drawers