Probably the more direct path in this case is to call
`application-quit-handler` to install a callback for when the "Quit"
menu item is selected, and the callback could call `(exit)`.

At Tue, 21 Feb 2017 13:51:17 -0500, Matthias Felleisen wrote:
> 
> Run your app’s threads in a custodian, and make sure to shut down this 
> custodian when you discover that the user has clicked on any ‘quit button’. 
> Something like 
> 
>       (class frame%
>              (super-new)
>              (inherit move resize)
>              (define/augment (on-close)
>               .. clean up ..
>                (custodian-shutdown-all top-level-custodian)))
> 
> may do what you want. 
> 
> 
> 
> 
> > On Feb 21, 2017, at 1:25 PM, Byron Davies <byrondav...@starshine.us> wrote:
> > 
> > I successfully built a Mac app, called BlackSwan, using raco exe and raco 
> distribute.  I was able to distribute it to beta testers and it worked 
> perfectly — until the user tries to quit out of it.  I haven’t added any 
> menus 
> to the app, but it comes up with a BlackSwan menu with About, Preferences 
> (grayed out), Services, Hide BlackSwan, Hide Others, and Quit BlackSwan. The 
> other menu items seem reasonably functional, but Quit BlackSwan only goes 
> half 
> way — it closes the main app window, but then leaves the app in a zombie 
> state, where only Force Quit gets rid of it.
> > 
> > How can I make it quit?
> > 
> > 
> > 
> > -- 
> > You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to