Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
cdemel opened this issue Dec 5, 2012 · 3 comments
Closed

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

cdemel opened this issue Dec 5, 2012 · 3 comments

Comments

@cdemel
Copy link

cdemel commented Dec 5, 2012

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
Copy link
Author

cdemel commented Dec 6, 2012

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

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

@andymatuschak
Copy link
Contributor

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!

@zorgiepoo
Copy link
Member

Note Sparkle 2 doesn't need posting of NSApplicationWillTerminateNotification anymore. Please don't do this with Sparkle 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants