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 Mon, Mar 22, 2010 at 12:19 AM, Michael Rueger <[email protected]> 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 > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >
_______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
