You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to gracefully clean up some stuff using Promises when my app quits, so I've implemented applicationShouldTerminate. I'm definitely making it inside that method, but my promise code inside it only works when the app is quit via Command-Q. If I quit the app programmatically using NSApplication.shared.terminate(self) the applicationShouldTerminate does run, but the promises inside it do nothing.
I've tested this in a fresh project with the following:
When I quit with cmd-Q this works perfectly but when I quit the app programmatically using NSApplication.shared.terminate(self) it prints applicationShouldTerminate but nothing else happens and the app never quits.
Any suggestions?
The text was updated successfully, but these errors were encountered:
I'd like to gracefully clean up some stuff using Promises when my app quits, so I've implemented
applicationShouldTerminate
. I'm definitely making it inside that method, but my promise code inside it only works when the app is quit via Command-Q. If I quit the app programmatically usingNSApplication.shared.terminate(self)
theapplicationShouldTerminate
does run, but the promises inside it do nothing.I've tested this in a fresh project with the following:
When I quit with cmd-Q this works perfectly but when I quit the app programmatically using
NSApplication.shared.terminate(self)
it printsapplicationShouldTerminate
but nothing else happens and the app never quits.Any suggestions?
The text was updated successfully, but these errors were encountered: