mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Add more nullability specifiers
This commit is contained in:
1 parent
1b46ecf663
commit
dafdcf21b6
2 files changed
+12
-4
No files matched your search
Vendored
+6
-2
@@ -9,6 +9,8 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "SUUserUpdaterDriver.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol SUSparkleUserUpdaterDriverDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
@@ -25,12 +27,14 @@
|
||||
|
||||
@interface SUSparkleUserUpdaterDriver : NSObject <SUUserUpdaterDriver>
|
||||
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id <SUSparkleUserUpdaterDriverDelegate>)delegate;
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(_Nullable id <SUSparkleUserUpdaterDriverDelegate>)delegate;
|
||||
|
||||
@property (nonatomic, readonly, weak) id <SUSparkleUserUpdaterDriverDelegate> delegate;
|
||||
@property (nonatomic, readonly, weak, nullable) id <SUSparkleUserUpdaterDriverDelegate> delegate;
|
||||
|
||||
@property (nonatomic, readonly, getter=isUpdateInProgress) BOOL updateInProgress;
|
||||
|
||||
- (NSApplicationTerminateReply)sendApplicationTerminationSignal;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Vendored
+6
-2
@@ -9,6 +9,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#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<SUVersionDisplay>)versionDisplayer allowsAutomaticUpdates:(BOOL)allowsAutomaticUpdates reply:(void (^)(SUUpdateAlertChoice))reply;
|
||||
- (void)showUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem versionDisplayer:(_Nullable id <SUVersionDisplay>)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
|
||||
Reference in new issue
Block a user