Broadcaster 1.1 review

Download
by rbytes.net on

Broadcaster will provide support for delegation of event handlers and thus allows a modular design of programming.

License: Freeware
OS: Mac OS X
File size: 233K
Developer: Alfred Van Hoek
Price: $0.00
Updated: 07 Nov 2005
0 stars award from rbytes.net


Broadcaster will provide support for delegation of event handlers and thus allows a modular design of programming.

For instance, a checkbox's action event is fired. You normally are forced to implement the action event of the checkbox with code belonging to your class. This is not necessary, because the CheckboxBroadcaster delegates the action event to an ActionListener your class can implement. Likewise the TimerBroadcaster delegates its action event to an actionlistener, and your class can implement such a listener keeping more code private.

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.

While this is the principal purpose of the plugin, making a class "timer aware", or "thread aware", or "pushbutton aware", etc, you also can register a bunch of listeners with one timer. This bunch can be put into an array of listeners and as such be registered.

You do not need to maintain a list of actionlistener objects for proper disposal, nor do you need to provide circular references. That is because the plugin appropriately will take care of these references "under the hood".

What's New:
Added RBScript support.

Requirements:
REALbasic 5 or later

Broadcaster 1.1 keywords