I have a wrapper application which launches a bundled application and then immediately quits (using [NSApp terminate:nil]
).
I would like to include Sparkle in this wrapper (it's not going to be possible to include if for the bundled app itself), and I've implemented it without any issues: so long as I comment out the NSApp terminate line.
The wrapper itself has no windows, so I can use:
-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
{
return YES;
}
to terminate the wrapper after the sparkle window is dismissed. This only works though, if there is actually an update. So want I really want to do is have some code that checks if there is an update available, and if not, then terminate the wrapper at the end.
I know this can probably be done with checkForUpdateInformation
but I'm still a bit lost with the whole delegation thing, so I'm not sure how to implement it.
Any help would be appreciated.