My vision, how things should happen , is following: EventSensor checks an event type in it's newly acqured raw event buffer from VM. Then it dispatching an event handling in following way:
eventClass := (eventTypes at: (rawEvent at: EventType "1"). event := (eventClass from: rawEvent). "Translate raw event into nice XXXXEvent instance" event handle. "dispatch event" Now, if event type is window event, eventClass would be, lets say HostWindowEvent. And in #handle it does following: hostWindow := self window. hostWindow subscriber handle: self. Here the main question, should HostWindow have a notion of subscriber(s) (as part of its state), or maybe there should be more generic way to wire a subscriber(s) with particular HostWindow instance, but without need in managing subscribers by HostWindow itself. > > > > -- > Best regards, > Igor Stasenko AKA sig. > -- Best regards, Igor Stasenko AKA sig. _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
