[Arp] Dispatching system events: command gets data from the viewRef, or the event is dispatched with data attached?
joao.saleiro at webfuel.pt
Sun Jun 4 17:41:48 PDT 2006
Ive been thinking about this lately, and Im not sure whats the preferable
solution. When commands are run, via dispatching of system events, and they
need data to operate, is it better to call a function on the viewRef, or to
pass the data directly in the event object?
And by the way, just another question: Ive noticed that when a lot of
events are dispatched almost at the same time, they may not be received in
the same order theyve been dispatched. Is this normal? Is there a way to
My application has two arrows to navigate through a person list. When
navigating, to show data for each person a command is called by dispatching
a system event (600ms after release). If the user is navigating too fast,
events sometimes are not received the same order they were dispatched. Since
this is causing great trouble in my application, I was thinking in creating
a counter for each type of event, and sending event number inside the event
object. If the number received is lower than some event received before, the
event is discarded. What do you think of this solution?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Arp