Add this method to any application that adds itself to the Tools menu. This method is sent each time the system menu is recomputed (by using System updateTranscriptMenus) after an application is loaded.Applications that modify items in the menu should also implement the methods loaded and removing that add or remove the modified menu items to ensure that the menu is correct whenever the application is loaded or unloaded. For example, the application EtDevelopment implements the method addToSystemMenu as a public class method. This method ensures that the Browse Class, Browse Hierarchy, and other menu items are added to the Tools menu.Applications that use the method removing must implement the method failedRemove to counteract anything done in the removing method. The method failedRemove is sent if an error occurs when unloading the application from an image. Some errors that can occur when unloading an application are:Applications that execute code each time they are loaded (for example, to initialize classes or variables, or to re-evaluate the Tools menu) must implement the method loaded. It is sent to an application after it has been loaded or reloaded.Any application can add this method to eliminate, prior to unloading the application, specific instances of its classes contained in class, shared, or global variables. This method also removes any entries added to the system menu. If an error occurs during unloading, the method failedRemove is sent to the application to counteract anything done in this method. To remove pool dictionaries, global variables, or shared variables declared by the application, see the wasRemovedCode: method.
![]() |