I’m wondering how I go about tailoring the host menu
bar on Mac OS X?
I’m not sure if the menu is fixed, and I have to respond
to each item, or if I can tailor the host menu.
If I remove entries from the MacOSXMenuDispatch,
(see below) will this remove entries from the host menu?
Cheers,
Stewart
setMenuDispatchTable
"Set
up the global EventDispatchTable to process host menubar events, then initialize
the MacOSX specific dispatch table
for events originated from menu bar picks.
As
a default, only special items of the default menu bar, as shipped by Cincom, are
registered and enabled."
EventDispatchTable at: 16 put: #send:eventMenu:.
MacOSXMenuDispatch := Dictionary new.
MacOSXMenuDispatch at: 1 put: #aboutVisualWorks:eventMenu:.
MacOSXMenuDispatch at: 2 put: #visualWorksSettings:eventMenu:.
MacOSXMenuDispatch at: 3 put: #quitVisualWorks:eventMenu:.
MacOSXMenuDispatch at: 11 put: #undo:eventMenu:.
MacOSXMenuDispatch at: 12 put: #redo:eventMenu:.
MacOSXMenuDispatch at: 16 put: #clear:eventMenu:.
MacOSXMenuDispatch at: 17 put: #selectAll:eventMenu:.
MacOSXMenuDispatch at: 32 put: #helpTopics:eventMenu:.