Re: [racket-users] Racket should not cancel an OS shutdown

2015-05-20 Thread Michael Tiedtke
Thank you very much!! Returning NSTerminateNow in the handler works fine me ... Il giorno 20/mag/2015, alle ore 16.44, Matthew Flatt ha scritto: It's been a few years since I last looked at this. If I remember correctly, the problem is a mismatch between the `racket/gui` model of

Re: [racket-users] Racket should not cancel an OS shutdown

2015-05-20 Thread Matthew Flatt
It's been a few years since I last looked at this. If I remember correctly, the problem is a mismatch between the `racket/gui` model of eventspaces and the way that shutdown notifications and responses work in Cocoa. The mismatch makes it difficult for `racket/gui` to defer its answer to the OS

[racket-users] Racket should not cancel an OS shutdown

2015-05-18 Thread Michael Tiedtke
When I try to shutdown my Mac Racket (run from the command line) cancels the shutdown or logout. I can install an application-quit-handler (with racket/gui) like this: ;; ;; Operating System Interface Incoming (define (quit-request) ;; XXX this is called but racket still