Fernando,
�Is that arquitecture enable the possibility of testing an UI application? i.e. is it possible to feed the application with fake events and�
wait for the results?

Thanks

On Thu, Apr 19, 2012 at 10:26 PM, Fernando Olivero <fernando.olivero@usi.ch> wrote:
No more HandMorph taking care of everything!

I found a use case for the reification of the user interface in Gaucho.

In Gaucho, i have a user interface, which has attached peripherals:
such as displays, mouse, keyboard, etc...
And each peripheral takes care of the proper event, dispatched by the
user interface ( which receives the VM events).

With this scheme, you have more flexibility because you can
plug/unplug peripheral devices as needed.

For example, i'm coding a Gaucho Login Display. that presents the
available sessions . I decided to use only keyboard based navigation,
so to disable the mouse
i simply unplug the mouse from the user interface ( as opposed to hack
my way around HandMorph or PasteUpMorph).

GauchoDisplayLogin>> initializeAttachedTo: aGUserInterface
� � � �| mouse |
� � � �super initializeAttachedTo: aGUserInterface.
� � � �mouse := userInterface peripheralDeviceNamed: #mouse.
� � � �mouse notNil ifTrue:[ mouse dettach ].


Regards,
Fernando