This is cool to see a bold guy like that pushing that :) Keep pushing mariano. Stef On Mar 22, 2010, at 12:19 AM, Michael Rueger wrote:
On 3/21/10 4:07 PM, Mariano Martinez Peck wrote:
Hi Michael. Let me see if I understood.
- In PharoCore I remove InputEventSensor >> processMenuEvent: and the invocation from ImputEventSensor >> processEvent: evt
correct And make sure to do it in the right order and have backups of your image ;-)
- In the package HostMenuSystem, I create a subclass of InputEventHandler (Suppose called HostMenuEventHandler). It is correct to subclass from this class ?
Yes
- In HostMenuEventHandler I create the method handleEvent: that does the if type = EventTypeMenu and do everything
Yes
- In a class side method initialize or similar, I put:
HostMenuEventHandler new registerIn: InputEventFetcher default.
Is that correct? I mean, it is correct to register in InputEventFetcher or I should use another class ?
You understood perfectly :-)
Now I'm curious if it actually works...
Will hopefully be a good example of how the new event handling setup allows us to do these things without system overrides.
Michael
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project