REALbasic plugin provides support for delegation of event handlers.
Broadcaster Plugin... The purpose of this REALbasic plugin is to provide support for delegation of event handlers and thus allows a modular design of programming. The plugin does not do anything magically; a timer-broadcaster can be developed in pure RB by subclassing a timer and creation of an interface, cluttering your project window with additional classes. All these are tucked away in the plugin, including code maintaining the reference to the handler, which in this example implements the actionlistener interface. The upshot is that you do not need to maintain a list of actionlistener objects for proper disposal, nor do you need to provide circular references.