How to stop background checks ?
I am very new to Sparkle, Cocoa and all of this but I am testing it with my Carbon app and seems to work pretty good !
I do updates trough a C function because my app is written in C++ and I don't think it is possible to directly use Cocoa objects inside.
Moreover, I use the setHostBundle method as my app is not a Cocoa one and I don't know how to manage this another way.
The only problem I have at the present time is that when I launch a periodic check on app's start using checkForUpdates
How can I force the periodic check to finish if still running ?
Actually, it seems that the check should not be running because even after minutes I still get this message, so tell me what I am doing wrong...
Thanks in advance for help.
Here is my check function :
void CheckForUpdates
{
if ([[SUUpdater sharedUpdater] updateInProgress])
{
OREALIA_
return;
}
// For automatic updates (silent mode), interval is defined within plist file in seconds
// For instance a week will be :
//<key>
//<string>
// Wich bundle do we update ?
NSString *l_BundlePath = [NSString stringWithUTF8S
NSBundle *l_Bundle = [NSBundle bundleWithPath:
[[SUUpdater sharedUpdater] setHostBundle:
if (p_Silent)
[[SUUpdater sharedUpdater] checkForUpdates
else
[[SUUpdater sharedUpdater] checkForUpdates
}
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sparkle Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luc Claustres
- Solved:
- Last query:
- Last reply: