quiet-automatic-update not working with Qt application #232

Closed
cdemel opened this Issue Dec 5, 2012 · 2 comments

2 participants

@cdemel

When I set the application to run in quiet mode, installWithToolAndRelaunch doesn't get called until an NSApplicationWillTerminateNotification happens. But I'm integrating Sparkle using the code from here:
http://el-tramo.be/blog/mixing-cocoa-and-qt/

and NSApplicationWillTerminateNotification doesn't seem to get sent. What's the best way to send this? Or should I tweak the Sparkle code to listen for something else?

@cdemel

For now I am just sending this at the beginning of the CocoaInitializer destructor:

[[NSNotificationCenter defaultCenter]
    postNotificationName:@"NSApplicationWillTerminateNotification"
    object:nil];
@andymatuschak

Sparkle's not going to work properly without getting the normal Cocoa lifecycle notifications. You can send them yourself, as you're doing there, but you take your program's correctness into your own hands!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment