I have several actions to perform before the application quits. They take about 3 or 4 seconds to be done (and may be more, up to 10 secs), and when I try to execute them in applicationWillTerminate
, only a part of them are done.
I also tried executing them in applicationShouldTerminate
before return NSApplicationTerminateReply.TerminateNow
, but still some of them are not performed. How to do all of them and then quit properly?