Aug. 1, 2009
10:42 p.m.
Dale Henrichs wrote:
Michael,
What's the approved method for unregistering the current user interrupt handler?
InputEventFetcher default eventHandlers copy do: [:hndlr | (hndlr isKindOf: UserInterruptHandler) ifTrue: [ hndlr unregister]].
Looks like it would work, but seems a bit fragile.
Hmm, well, that part obviously wasn't thought out well... So your code above would do for now. A better way could be to have the UserInterruptHandler class remember the current registered handler. Michael