The methods you use include the following:
This method must be called by the loaded method of an application. The application must also call removeTranscriptMenuNamed: in the application's removing method. Any application that wants to add options to the named menu must implement the method specified by selector. The menu is obtained using transcriptMenuNamed:.
The following is an example of how a class typically adds a pulldown menu to the Transcript menu bar, and adds some options to the new menu. This example also shows which methods should be used for this code.
A class named MyClass wants to add a menu item named MyApplication to the end of the Transcript menu bar when the class is loaded. If the class is unloaded, the menu is no longer needed. For information on the loaded and removing initialization methods, see Application initialization.
The three class methods of MyClass are the following:
loaded "Add myMenu to the Transcript when I load." System addTranscriptMenuNamed: #myMenu title: 'MyApplication' selectorForBuild: #addToMyMenu after: nil.
removing "Remove myMenu from the Transcript when I unload." System removeTranscriptMenuNamed: #myMenu.
addToMyMenu "Add some items to myMenu" (System transcriptMenuNamed: #myMenu) add: #myFirstCommand label: 'Do This'; add: #mySecondCommand label: 'Do That'.