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.

Dale

----- "Michael Rueger" <[email protected]> wrote:

| Dale Henrichs wrote:
| 
| > The class UserInterruptHandler is tantalizingly close, however,
| there
| > is no obvious way to insinuate myself as an interested
| party....It's
| > pretty much hard-wired to open a debugger on the interrupted
| > process....
| 
| Just write your own class (e.g. subclass UserInterruptHandler) and 
| replace the handler (unregister the current one and register your
| own).
| 
| That's why I designed it the way it is :-)
| 
| michael

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to