Called just before a contextual menu for a view is opened on screen.
- macOS 10.11+
The menu that will be opened.
The event that caused the menu to open.
This method is called just before a contextual menu for a view is opened on screen. It provides an opportunity to make any desired changes to the visual state of the view. For example, a table view might select a row in response to the contextual menu being displayed.