|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Double Click fixHi all,
attached a fix for the click-double click problem. You need to wait for another fix (cleanup for multiple event waits) Bert is working on right now for this to work reliably. Unless you are willing to wait for a full garbage collect between mouse clicks ;-) Michael _______________________________________________ Tweak mailing list Tweak@... http://impara.de/mailman/listinfo/tweak |
|
|
[FIX] waitUntilAnyOf: releases only first observerAm 12.07.2006 um 17:38 schrieb Michael Rueger:
> Hi all, > > attached a fix for the click-double click problem. > > You need to wait for another fix (cleanup for multiple event waits) > Bert is working on right now for this to work reliably. > Unless you are willing to wait for a full garbage collect between > mouse clicks ;-) > > Michael > <CPrimitiveCostume-waitForClicksOrDragevent.st.gz> Here's the promised fix: http://bugs.impara.de/view.php?id=4241 The problem can be seen here: o := CObject new. o startScript: [ duringMy := o handlesEvent: #myEvent. duringOther := o handlesEvent: #otherEvent. o signal: #myEvent]. beforeMy := o handlesEvent: #myEvent. beforeOther := o handlesEvent: #otherEvent. o waitUntilAnyOf: { o. #myEvent. o. #otherEvent.}. afterMy := o handlesEvent: #myEvent. afterOther := o handlesEvent: #otherEvent. {#myEvent->beforeMy -> duringMy -> afterMy. #otherEvent->beforeOther -> duringOther -> afterOther}. This prints #(#myEvent->false->true->false #otherEvent->false->true->true) before and #(#myEvent->false->true->false #otherEvent->false->true->false) after my fix. - Bert- _______________________________________________ Tweak mailing list Tweak@... http://impara.de/mailman/listinfo/tweak |
|
|
Re: [FIX] waitUntilAnyOf: releases only first observerLooks good to me. Just put the fixes into the repository.
Cheers, - Andreas Bert Freudenberg wrote: > Am 12.07.2006 um 17:38 schrieb Michael Rueger: > >> Hi all, >> >> attached a fix for the click-double click problem. >> >> You need to wait for another fix (cleanup for multiple event waits) >> Bert is working on right now for this to work reliably. >> Unless you are willing to wait for a full garbage collect between >> mouse clicks ;-) >> >> Michael >> <CPrimitiveCostume-waitForClicksOrDragevent.st.gz> > > Here's the promised fix: > > http://bugs.impara.de/view.php?id=4241 > > The problem can be seen here: > > o := CObject new. > o startScript: [ > duringMy := o handlesEvent: #myEvent. > duringOther := o handlesEvent: #otherEvent. > o signal: #myEvent]. > beforeMy := o handlesEvent: #myEvent. > beforeOther := o handlesEvent: #otherEvent. > o waitUntilAnyOf: { > o. #myEvent. > o. #otherEvent.}. > afterMy := o handlesEvent: #myEvent. > afterOther := o handlesEvent: #otherEvent. > {#myEvent->beforeMy -> duringMy -> afterMy. > #otherEvent->beforeOther -> duringOther -> afterOther}. > > This prints > > #(#myEvent->false->true->false > #otherEvent->false->true->true) > > before and > > #(#myEvent->false->true->false > #otherEvent->false->true->false) > > after my fix. > > - Bert- > _______________________________________________ > Tweak mailing list > Tweak@... > http://impara.de/mailman/listinfo/tweak > > Tweak mailing list Tweak@... http://impara.de/mailman/listinfo/tweak |
|
|
Re: [FIX] waitUntilAnyOf: releases only first observerYou guys are like rock stars.
On Jul 12, 2006, at 8:55 AM, Bert Freudenberg wrote: > Am 12.07.2006 um 17:38 schrieb Michael Rueger: > >> Hi all, >> >> attached a fix for the click-double click problem. >> >> You need to wait for another fix (cleanup for multiple event >> waits) Bert is working on right now for this to work reliably. >> Unless you are willing to wait for a full garbage collect between >> mouse clicks ;-) >> >> Michael >> <CPrimitiveCostume-waitForClicksOrDragevent.st.gz> > > Here's the promised fix: > > http://bugs.impara.de/view.php?id=4241 > > The problem can be seen here: > > o := CObject new. > o startScript: [ > duringMy := o handlesEvent: #myEvent. > duringOther := o handlesEvent: #otherEvent. > o signal: #myEvent]. > beforeMy := o handlesEvent: #myEvent. > beforeOther := o handlesEvent: #otherEvent. > o waitUntilAnyOf: { > o. #myEvent. > o. #otherEvent.}. > afterMy := o handlesEvent: #myEvent. > afterOther := o handlesEvent: #otherEvent. > {#myEvent->beforeMy -> duringMy -> afterMy. > #otherEvent->beforeOther -> duringOther -> afterOther}. > > This prints > > #(#myEvent->false->true->false > #otherEvent->false->true->true) > > before and > > #(#myEvent->false->true->false > #otherEvent->false->true->false) > > after my fix. > > - Bert- > _______________________________________________ > Tweak mailing list > Tweak@... > http://impara.de/mailman/listinfo/tweak > _______________________________________________ Tweak mailing list Tweak@... http://impara.de/mailman/listinfo/tweak |
| Free Forum Powered by Nabble | Forum Help |