Returns the class to use for the install window controller.
- ( Class )classForUpdaterInstallWindowController: ( GitHubUpdater * )updater;
This allows you to specify a custom class for the install window controller, if you need customization. Note that the returned class must inherit from `GitHubInstallWindowController`.
The class to use
Returns the class to use for the progress window controller.
- ( Class )classForUpdaterProgressWindowController: ( GitHubUpdater * )updater;
This allows you to specify a custom class for the progress window controller, if you need customization. Note that the returned class must inherit from `GitHubProgressWindowController`.
The class to use
Called when the updater has shown an install window.
- ( void )updater: ( GitHubUpdater * )updater
didShowInstallWindowController: ( GitHubInstallWindowController * )controller;
Called when the updater has shown a progress window.
- ( void )updater: ( GitHubUpdater * )updater
didShowProgressWindowController: ( GitHubProgressWindowController * )controller;
Called when the updater has shown an install window.
- ( void )updater: ( GitHubUpdater * )updater
didShowInstallWindowController: ( GitHubInstallWindowController * )controller;
Gets releases from a data object
- ( nullable NSArray< GitHubRelease * > * )updater: ( GitHubUpdater * )updater
releasesWithData: ( NSData * )data error: ( NSError * __autoreleasing * )error;
You may implement this method if you need to customize the parsing of updates data, with a different behaviour than using JSON data from GitHub releases.
An array of release objects, if any
Returns the URL for the update check.
- ( NSURL * )updater: ( GitHubUpdater * )updater
urlForUpdatesWithUser: ( NSString * )user repository: ( NSString * )repository
proposedURL: ( NSURL * )proposedURL;
You may implement this if you need to customize the update URL, for instance if you use another servcie than GitHub.
Determines if a version is newer than another version
- ( BOOL )updater: ( GitHubUpdater * )updater version: ( GitHubVersion * )v1
isNewerThanVersion: ( GitHubVersion * )v2;
You may implement this method if you need to customize the way versions are compared.
YES if the first version is newer, otherwise NO
Gets a version object for a release.
- ( GitHubVersion * )updater: ( GitHubUpdater * )updater
versionForRelease: ( GitHubRelease * )release;
You may implement this method if you need to customize the way version numbers are created from releases. If not implemented, the tag name will be used as version number.
A version object for the release
Called when the updater is about to close an install window.
- ( void )updater: ( GitHubUpdater * )updater
willCloseInstallWindowController: ( GitHubInstallWindowController * )controller;
Called when the updater is about to close a progress window.
- ( void )updater: ( GitHubUpdater * )updater
willCloseProgressWindowController: ( GitHubProgressWindowController * )controller;
Called when the updater is about to display an error alert.
- ( void )updater: ( GitHubUpdater * )updater
willDisplayAlert: ( NSAlert * )alert withError: ( NSError * )error;
Called when the updater is about to display an up-to-date alert.
- ( void )updater: ( GitHubUpdater * )updater
willDisplayUpToDateAlert: ( NSAlert * )alert;
Called when the updater is about to show an install window.
- ( void )updater: ( GitHubUpdater * )updater
willShowInstallWindowController: ( GitHubInstallWindowController * )controller;
Called when the updater is about to show a progress window.
- ( void )updater: ( GitHubUpdater * )updater
willShowProgressWindowController: ( GitHubProgressWindowController * )controller;
Implement if you need to check for draft updates.
- ( BOOL )updaterShouldCheckForDrafts: ( GitHubUpdater * )updater;
YES if the updater should check for draft updates, otherwise NO
Implement if you need to check for prerelease updates.
- ( BOOL )updaterShouldCheckForPrereleases: ( GitHubUpdater * )updater;
YES if the updater should check for prerelease updates, otherwise NO
Whether the updater is allowed to check for updates in background.
- ( BOOL )updaterShouldCheckForUpdatesInBackground: ( GitHubUpdater * )updater;
By implementing this method, you can control if the updater can check for updates in background. This method has no effect on user-initiated update checks, using `- [ GitHubUpdater checkForUpdates: ]`. It will only be able to control `- [ GitHubUpdater checkForUpdatesInBackground ]`.
YES if the updater should check for updates in background, otherwise NO