From dafdcf21b6bb3525f002e3aa5d431aa24d20606d Mon Sep 17 00:00:00 2001 From: Zorg Date: Tue, 1 Mar 2016 20:15:45 -0500 Subject: [PATCH] Add more nullability specifiers --- Sparkle/SUSparkleUserUpdaterDriver.h | 8 ++++++-- Sparkle/SUUserUpdaterDriver.h | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Sparkle/SUSparkleUserUpdaterDriver.h b/Sparkle/SUSparkleUserUpdaterDriver.h index 6eae58c6..6efa9f46 100644 --- a/Sparkle/SUSparkleUserUpdaterDriver.h +++ b/Sparkle/SUSparkleUserUpdaterDriver.h @@ -9,6 +9,8 @@ #import #import "SUUserUpdaterDriver.h" +NS_ASSUME_NONNULL_BEGIN + @protocol SUSparkleUserUpdaterDriverDelegate @optional @@ -25,12 +27,14 @@ @interface SUSparkleUserUpdaterDriver : NSObject -- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id )delegate; +- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(_Nullable id )delegate; -@property (nonatomic, readonly, weak) id delegate; +@property (nonatomic, readonly, weak, nullable) id delegate; @property (nonatomic, readonly, getter=isUpdateInProgress) BOOL updateInProgress; - (NSApplicationTerminateReply)sendApplicationTerminationSignal; @end + +NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUUserUpdaterDriver.h b/Sparkle/SUUserUpdaterDriver.h index 1a2970cb..1fd8137b 100644 --- a/Sparkle/SUUserUpdaterDriver.h +++ b/Sparkle/SUUserUpdaterDriver.h @@ -9,6 +9,8 @@ #import #import "SUStatusCompletionResults.h" +NS_ASSUME_NONNULL_BEGIN + @class SUUpdatePermissionPromptResult, SUAppcastItem; @protocol SUVersionDisplay; @@ -103,7 +105,7 @@ * Let the user know a new update is found and ask them what they want to do. * * @param appcastItem The Appcast Item containing information that reflects the new update - * @param versionDisplayer The custom version displayer for showing the update's version string + * @param versionDisplayer The custom version displayer for showing the update's version string - this may be nil. * @param allowsAutomaticUpdates Indicates whether the user is allowed to use automatic updates. * A user interface may use this to give the user an option to enable automatic updates. * @param reply A reply of SUInstallUpdateChoice installs the new update immediately. A reply of @@ -113,7 +115,7 @@ * * This can be called from any thread */ -- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem versionDisplayer:(id)versionDisplayer allowsAutomaticUpdates:(BOOL)allowsAutomaticUpdates reply:(void (^)(SUUpdateAlertChoice))reply; +- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem versionDisplayer:(_Nullable id )versionDisplayer allowsAutomaticUpdates:(BOOL)allowsAutomaticUpdates reply:(void (^)(SUUpdateAlertChoice))reply; /*! * Show the user a new update that was already automatically downloaded is available @@ -297,3 +299,5 @@ - (void)dismissUpdateInstallation; @end + +NS_ASSUME_NONNULL_END