The access to the callback is not evident because the
element does not know about its callbacks; the callbacks are only known by the announcer
and announcer provides very limited API to its internal information. Hence my question:
how should I gain access to the callbacks of an element to trigger them and test that they
do not raise errors.
Something like that:
-=-=-=-=-=-=
| e |
e := RTBox element.
e when: TRMouseClick do: [ :evt | Transcript show: 'blah'; cr ].
e announcer subscriptions subscriptionsOf: nil do: [ :evt | evt action value: TRMouseClick
new ]
-=-=-=-=-=-=
??
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.