System contextual menus
System contextual menus
- Subject: System contextual menus
- From: Rainer Brockerhoff <email@hidden>
- Date: Wed, 30 Jan 2002 12:56:03 -0200
I'm implementing some contextual menus in a Cocoa application and was struck by the apparent omission of a Cocoa way to get the system-wide contextual menu and add items to it (as found in Carbon, with the ContextualMenuSelect() call).
A search of the docs, Google, and list archives yielded no useful hints...
I suppose I'd need to implement sendEvent: in my window, somehow convert the event to the Carbon Event Manager format, call IsShowContextualMenuClick(), then ContextualMenuSelect(), then... hmmm...
Anybody's done that sort of thing...? TIA,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"I love deadlines. I love the whooshing noise they make as they go by" (Douglas Adams)
http://www.brockerhoff.net/ (updated Jan. 2002)