micahflee / rustywidgets

An example program see how easy it is to make usable macOS GUI apps with rust and GTK+
Other
12 stars 0 forks source link

Cmd+Q doesn't quit #1

Open micahflee opened 6 years ago

micahflee commented 6 years ago

I've found this resource, where someone runs into the same problem using GTK+ on a Mac, only in Haskell: https://stackoverflow.com/questions/37370553/how-to-handle-quit-command-cmd-q-in-mac-os-x-in-haskell-gtk2hs

I need to figure out how to handle the NSApplicationWillTerminate signal, and I haven't figured it out yet.

akilism commented 6 years ago

process::exit(1); 😉 jk jk