In a Cocoa application, is there a way to easily allow users to display additional or completely different options in a context menu when they hold down the Option (⌥) key?
Here's it being used in the Volume context menu in the global menu bar:
It's also used in Finder, but I can't take a screenshot because the shortcut to take a screenshot cancels out the Option (⌥) context menu.
Take a look at NSView's menuForEvent: method and NSMenuItem's alternate property. The discussion of setAlternate: is missing, here it is: