diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index a6422d62..522764ed 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -17,6 +17,8 @@ @protocol SUVersionComparison, SUVersionDisplay; @class SUUpdater, SUAppcast, SUAppcastItem; +NS_ASSUME_NONNULL_BEGIN + // ----------------------------------------------------------------------------- // SUUpdater Notifications for events that might be interesting to more than just the delegate // The updater will be the notification object @@ -74,7 +76,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; \param updater The SUUpdater instance. */ -- (NSString *)feedURLStringForUpdater:(SUUpdater *)updater; +- (nullable NSString *)feedURLStringForUpdater:(SUUpdater *)updater; /*! Returns whether Sparkle should prompt the user about automatic update checks. @@ -105,7 +107,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; \param appcast The appcast that was downloaded from the remote server. \param updater The SUUpdater instance. */ -- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast forUpdater:(SUUpdater *)updater; +- (nullable SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast forUpdater:(SUUpdater *)updater; /*! Called when a valid update is found by the update driver. @@ -197,7 +199,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; \param updater The SUUpdater instance. */ -- (id)versionComparatorForUpdater:(SUUpdater *)updater; +- (nullable id)versionComparatorForUpdater:(SUUpdater *)updater; /*! Returns an object that formats version numbers for display to the user. @@ -209,7 +211,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; \param updater The SUUpdater instance. */ -- (id)versionDisplayerForUpdater:(SUUpdater *)updater; +- (nullable id)versionDisplayerForUpdater:(SUUpdater *)updater; /*! Returns the path which is used to relaunch the client after the update is installed. @@ -218,7 +220,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; \param updater The SUUpdater instance. */ -- (NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater; +- (nullable NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater; /*! Called before an updater shows a modal alert window, @@ -264,3 +266,5 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; - (void)updater:(SUUpdater *)updater didAbortWithError:(NSError *)error; @end + +NS_ASSUME_NONNULL_END