[squeak-dev] Re: swapMouseButtons broken in trunk
marcel.taeumel
Marcel.Taeumel at hpi.de
Mon Mar 7 23:13:10 UTC 2016
It's actuallly really simple:
term := #swapMouseButtonsChanged.
senders := OrderedCollection new.
SystemNavigation default allObjectsDo: [:ea |
1 to: ea class instSize do: [:i | |val|
val := ea instVarAt: i.
val isSymbol ifTrue: [
val = term ifTrue: [senders add: ea]]]].
senders explore.
On my laptop, it benches to '11.6 per second. 85.9 milliseconds per run.'
Should we add this to trunk? We could filter out method additions or method
references to produce cleaner results. The "Senders" shortcut might just
spawn an additional explorer with the resulting objects. Fairly easy.
Best,
Marcel
--
View this message in context: http://forum.world.st/swapMouseButtons-broken-in-trunk-tp4881884p4883109.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|