[VW7.5] [MacExtras] How to tailor the host menu bar?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[VW7.5] [MacExtras] How to tailor the host menu bar?

Stew MacLean

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:.