Thanks Michael. Now I have another question. In the latests PharoCore 1.1 I cannot see the VM menu. I only see the options "Squeak VM" and "Edit".
But the HostMenuSystem was only removed in Pharo 1.0 with the ifPresent:� in processMenuEvent:
In 1.1 that method is correct.
Then....I don't understand why I don't see the VM menus like Tools, Debug, etc. Should I see them ?
Adrian any idea ?
Maybe there is a problem with the Smalltalk startUpList ? I know it has been changed in previous updates.
Cheers
Mariano
On 3/21/10 4:07 PM, Mariano Martinez Peck wrote:correct
Hi Michael. Let me see if I understood.
- In PharoCore I remove InputEventSensor >> processMenuEvent: �and the
invocation from ImputEventSensor >> processEvent: evt
And make sure to do it in the right order and have backups of your image ;-)Yes
- 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
You understood perfectly :-)
- 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 ?
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