Andy Matuschak 5c32832eed Fixes bug 228446
Finally adding real delegate support. The following methods are implemented; the comments document them.

If you have suggestions for other methods that would be useful, feel free to suggest them.

// Use this to override the default behavior for Sparkle prompting the user about automatic update checks.
- (BOOL)shouldPromptForPermissionToCheckForUpdates;

// Implement this if you want to do some special handling with the appcast once it finishes loading.
- (void)appcastDidFinishLoading:(SUAppcast *)appcast;

// If you're using special logic or extensions in your appcast, implement this to use your own logic for finding
// a valid update, if any, in the given appcast.
- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast;

// Sent when a valid update is found by the update driver.
- (void)didFindValidUpdate:(SUAppcastItem *)update;

// Sent when the user makes a choice in the update alert dialog (install now / remind me later / skip this version).
- (void)userChoseAction:(SUUpdateAlertChoice)action forUpdate:(SUAppcastItem *)update;

// Sent immediately before installing the specified update.
- (void)updateWillInstall:(SUAppcastItem *)update;

// Return YES to delay the relaunch until you do some processing; invoke the given NSInvocation to continue.
- (BOOL)shouldPostponeRelaunchForUpdate:(SUAppcastItem *)update untilInvoking:(NSInvocation *)invocation;

// Called immediately before relaunching.
- (void)updaterWillRelaunchApplication;
2008-05-31 00:13:38 -07:00
2008-05-30 22:15:24 -07:00
2008-05-30 21:46:08 -07:00
2008-04-15 15:22:18 +00:00
2008-04-15 15:22:18 +00:00
2008-05-30 22:15:24 -07:00
2008-05-31 00:13:38 -07:00
2008-05-31 00:13:38 -07:00
2008-05-31 00:13:38 -07:00
2008-05-30 21:46:08 -07:00
2008-05-30 21:46:08 -07:00
2008-05-30 22:15:24 -07:00
2008-05-30 22:15:24 -07:00
2008-05-30 22:15:24 -07:00
2008-05-30 22:15:24 -07:00
2008-04-15 15:22:18 +00:00
2008-05-30 22:15:24 -07:00
2008-05-31 00:13:38 -07:00
2008-04-15 15:22:18 +00:00
2008-05-31 00:13:38 -07:00
2008-05-31 00:13:38 -07:00
S
Description
Mirror of github.com/sparkle-project/Sparkle
MIT, Zlib, BSD-2-Clause
51 MiB
0 Stars 1 Watchers 0 Forks
Languages
Objective-C 68.7%
Swift 28.9%
Shell 1.6%
Python 0.6%
Makefile 0.1%