fernando now we should find a path to slowly changing the system to incorporate some of your changes. Because we cannot rewrite everything as you did (at least I cannot :)).
Stef On Apr 20, 2012, at 3:26 AM, Fernando Olivero 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 >
