check if the app needs to update

Asked by keegan3d

I am working on an app for copying file paths, so it starts up, copies the paths for the selected files and quits. Is there a way to test if there is an update for the app so it does not quit its self? My app does not have a UI, so I am using [SUUpdater updaterForBundle:[NSBundle bundleForClass:[self class]]].

Question information

Language:
English Edit question
Status:
Answered
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

Yeah, you can check if there's an update using this SUUpdater method:

// This begins a "probing" check for updates which will not actually offer to
// update to that version. The delegate methods, though, (up to updater:didFindValidUpdate:
// and updaterDidNotFindUpdate:), are called, so you can use that information in your UI.
// Essentially, you can use this to UI-lessly determine if there's an update.
- (void)checkForUpdateInformation;

Call that, then don't quit until updaterDidNotFindUpdate: is called.

Can you help with this problem?

Provide an answer of your own, or ask keegan3d for more information if necessary.

To post a message you must log in.