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

Reply via email to