mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
s/SUSparkleUserDriver/SUStandardUserDriver/
This commit is contained in:
1 parent
5f572854d2
commit
f5a9cf14de
11 files changed
+60
-60
No files matched your search
@@ -177,12 +177,12 @@
|
||||
725602D61C83551C00DAA70E /* SUApplicationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 725602D41C83551C00DAA70E /* SUApplicationInfo.m */; };
|
||||
725602D71C83576100DAA70E /* SUApplicationInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = 725602D41C83551C00DAA70E /* SUApplicationInfo.m */; };
|
||||
725CB9571C7120410064365A /* SUUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9561C7120410064365A /* SUUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
725CB95A1C7121830064365A /* SUSparkleUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9581C7121830064365A /* SUSparkleUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
725CB95B1C7121830064365A /* SUSparkleUserDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 725CB9591C7121830064365A /* SUSparkleUserDriver.m */; };
|
||||
725CB95A1C7121830064365A /* SUStandardUserDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 725CB9581C7121830064365A /* SUStandardUserDriver.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
725CB95B1C7121830064365A /* SUStandardUserDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 725CB9591C7121830064365A /* SUStandardUserDriver.m */; };
|
||||
7268AC631AD634C200C3E0C1 /* SUBinaryDeltaCreate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */; };
|
||||
726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */ = {isa = PBXBuildFile; fileRef = 726DF88D1C84277500188804 /* SUStatusCompletionResults.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726E4A0E1C86881600C57C6A /* SUSparkleUserDriverUIDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0D1C86881600C57C6A /* SUSparkleUserDriverUIDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726E4A101C86B5A200C57C6A /* SUSparkleUserDriverRemoteDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0F1C86B5A200C57C6A /* SUSparkleUserDriverRemoteDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726E4A0E1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726E4A101C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */; settings = {ATTRIBUTES = (Public, ); }; };
|
||||
726E4A1B1C86C88F00C57C6A /* TestAppHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E4A1A1C86C88F00C57C6A /* TestAppHelper.m */; };
|
||||
726E4A1D1C86C88F00C57C6A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 726E4A1C1C86C88F00C57C6A /* main.m */; };
|
||||
726E4A211C86C88F00C57C6A /* TestAppHelper.xpc in Embed XPC Services */ = {isa = PBXBuildFile; fileRef = 726E4A161C86C88F00C57C6A /* TestAppHelper.xpc */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||
@@ -662,14 +662,14 @@
|
||||
725602D31C83551C00DAA70E /* SUApplicationInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUApplicationInfo.h; sourceTree = "<group>"; };
|
||||
725602D41C83551C00DAA70E /* SUApplicationInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUApplicationInfo.m; sourceTree = "<group>"; };
|
||||
725CB9561C7120410064365A /* SUUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserDriver.h; sourceTree = "<group>"; };
|
||||
725CB9581C7121830064365A /* SUSparkleUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSparkleUserDriver.h; sourceTree = "<group>"; };
|
||||
725CB9591C7121830064365A /* SUSparkleUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUSparkleUserDriver.m; sourceTree = "<group>"; };
|
||||
725CB9581C7121830064365A /* SUStandardUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriver.h; sourceTree = "<group>"; };
|
||||
725CB9591C7121830064365A /* SUStandardUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStandardUserDriver.m; sourceTree = "<group>"; };
|
||||
7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaCreate.m; sourceTree = "<group>"; };
|
||||
7268AC641AD634E400C3E0C1 /* SUBinaryDeltaCreate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaCreate.h; sourceTree = "<group>"; };
|
||||
726B2B5D1C645FC900388755 /* UI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
726DF88D1C84277500188804 /* SUStatusCompletionResults.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStatusCompletionResults.h; sourceTree = "<group>"; };
|
||||
726E4A0D1C86881600C57C6A /* SUSparkleUserDriverUIDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSparkleUserDriverUIDelegate.h; sourceTree = "<group>"; };
|
||||
726E4A0F1C86B5A200C57C6A /* SUSparkleUserDriverRemoteDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSparkleUserDriverRemoteDelegate.h; sourceTree = "<group>"; };
|
||||
726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverUIDelegate.h; sourceTree = "<group>"; };
|
||||
726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverRemoteDelegate.h; sourceTree = "<group>"; };
|
||||
726E4A111C86C44A00C57C6A /* Sparkle-Test-App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Sparkle-Test-App.entitlements"; sourceTree = "<group>"; };
|
||||
726E4A161C86C88F00C57C6A /* TestAppHelper.xpc */ = {isa = PBXFileReference; explicitFileType = "wrapper.xpc-service"; includeInIndex = 0; path = TestAppHelper.xpc; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
726E4A181C86C88F00C57C6A /* TestAppHelperProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestAppHelperProtocol.h; sourceTree = "<group>"; };
|
||||
@@ -1048,10 +1048,10 @@
|
||||
children = (
|
||||
7246E0A11C83B685003B4E75 /* SUUpdaterController.h */,
|
||||
7246E0A21C83B685003B4E75 /* SUUpdaterController.m */,
|
||||
726E4A0D1C86881600C57C6A /* SUSparkleUserDriverUIDelegate.h */,
|
||||
726E4A0F1C86B5A200C57C6A /* SUSparkleUserDriverRemoteDelegate.h */,
|
||||
725CB9581C7121830064365A /* SUSparkleUserDriver.h */,
|
||||
725CB9591C7121830064365A /* SUSparkleUserDriver.m */,
|
||||
726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */,
|
||||
726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */,
|
||||
725CB9581C7121830064365A /* SUStandardUserDriver.h */,
|
||||
725CB9591C7121830064365A /* SUStandardUserDriver.m */,
|
||||
6120721009CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h */,
|
||||
6120721109CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m */,
|
||||
6196CFE309C71ADE000DC222 /* SUStatusController.h */,
|
||||
@@ -1249,9 +1249,9 @@
|
||||
isa = PBXHeadersBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
726E4A0E1C86881600C57C6A /* SUSparkleUserDriverUIDelegate.h in Headers */,
|
||||
726E4A101C86B5A200C57C6A /* SUSparkleUserDriverRemoteDelegate.h in Headers */,
|
||||
725CB95A1C7121830064365A /* SUSparkleUserDriver.h in Headers */,
|
||||
726E4A0E1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h in Headers */,
|
||||
726E4A101C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h in Headers */,
|
||||
725CB95A1C7121830064365A /* SUStandardUserDriver.h in Headers */,
|
||||
725CB9571C7120410064365A /* SUUserDriver.h in Headers */,
|
||||
72162B061C82C8B30013C1C5 /* SUParameterAssert.h in Headers */,
|
||||
726DF88E1C84277600188804 /* SUStatusCompletionResults.h in Headers */,
|
||||
@@ -1829,7 +1829,7 @@
|
||||
72A450541C69A68900D67EEA /* SUUpdatePermissionPromptResult.m in Sources */,
|
||||
7275F9C21B5F1F2900B1D19E /* SUFileManager.m in Sources */,
|
||||
767B61AD1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */,
|
||||
725CB95B1C7121830064365A /* SUSparkleUserDriver.m in Sources */,
|
||||
725CB95B1C7121830064365A /* SUStandardUserDriver.m in Sources */,
|
||||
61EF67560E25B58D00F754E0 /* SUHost.m in Sources */,
|
||||
618FA5020DAE88B40026945C /* SUInstaller.m in Sources */,
|
||||
55C14F07136EF6DB00649790 /* SULog.m in Sources */,
|
||||
|
||||
+10
-10
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// SUSparkleUserDriver.h
|
||||
// SUStandardUserDriver.h
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Mayur Pawashe on 2/14/16.
|
||||
@@ -11,21 +11,21 @@
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol SUSparkleUserDriverUIDelegate, SUSparkleUserDriverRemoteDelegate;
|
||||
@protocol SUStandardUserDriverUIDelegate, SUStandardUserDriverRemoteDelegate;
|
||||
|
||||
/*!
|
||||
A protocol for Sparkle's user driver's delegate
|
||||
A protocol for Sparkle's standard user driver's delegate
|
||||
|
||||
If you are interested in UI interactions, check out SUSparkleUserDriverUIDelegate
|
||||
If you are interested in XPC or remote process communications for efficiency and reliability, check out SUSparkleUserDriverRemoteDelegate
|
||||
If you are interested in UI interactions, check out SUStandardUserDriverUIDelegate
|
||||
If you are interested in XPC or remote process communications for efficiency and reliability, check out SUStandardUserDriverRemoteDelegate
|
||||
*/
|
||||
@protocol SUSparkleUserDriverDelegate <SUSparkleUserDriverUIDelegate, SUSparkleUserDriverRemoteDelegate>
|
||||
@protocol SUStandardUserDriverDelegate <SUStandardUserDriverUIDelegate, SUStandardUserDriverRemoteDelegate>
|
||||
@end
|
||||
|
||||
/*!
|
||||
Sparkle's standard built-in driver for user updater interactions
|
||||
Sparkle's standard built-in user driver for updater interactions
|
||||
*/
|
||||
@interface SUSparkleUserDriver : NSObject <SUUserDriver>
|
||||
@interface SUStandardUserDriver : NSObject <SUUserDriver>
|
||||
|
||||
/*!
|
||||
Initializes a Sparkle's standard user driver for user update interactions
|
||||
@@ -33,12 +33,12 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@param hostBundle The target bundle of the host that is being updated
|
||||
@param delegate The delegate to this user driver. Pass nil if you don't want to provide one.
|
||||
*/
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(_Nullable id <SUSparkleUserDriverDelegate>)delegate;
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(_Nullable id <SUStandardUserDriverDelegate>)delegate;
|
||||
|
||||
/*!
|
||||
Readable and writable property for this user driver's delegate
|
||||
*/
|
||||
@property (nonatomic, weak, nullable) id <SUSparkleUserDriverDelegate> delegate;
|
||||
@property (nonatomic, weak, nullable) id <SUStandardUserDriverDelegate> delegate;
|
||||
|
||||
/*!
|
||||
Indicates whether or not an update is in progress as far as the user is concerned
|
||||
+10
-10
@@ -1,14 +1,14 @@
|
||||
//
|
||||
// SUSparkleUserDriver.m
|
||||
// SUStandardUserDriver.m
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Mayur Pawashe on 2/14/16.
|
||||
// Copyright © 2016 Sparkle Project. All rights reserved.
|
||||
//
|
||||
|
||||
#import "SUSparkleUserDriver.h"
|
||||
#import "SUSparkleUserDriverUIDelegate.h"
|
||||
#import "SUSparkleUserDriverRemoteDelegate.h"
|
||||
#import "SUStandardUserDriver.h"
|
||||
#import "SUStandardUserDriverUIDelegate.h"
|
||||
#import "SUStandardUserDriverRemoteDelegate.h"
|
||||
#import "SUAppcastItem.h"
|
||||
#import "SUVersionDisplayProtocol.h"
|
||||
#import "SUHost.h"
|
||||
@@ -20,7 +20,7 @@
|
||||
#import "SULocalizations.h"
|
||||
#import "SUApplicationInfo.h"
|
||||
|
||||
@interface SUSparkleUserDriver ()
|
||||
@interface SUStandardUserDriver ()
|
||||
|
||||
@property (nonatomic, readonly) SUHost *host;
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
@end
|
||||
|
||||
@implementation SUSparkleUserDriver
|
||||
@implementation SUStandardUserDriver
|
||||
|
||||
@synthesize host = _host;
|
||||
@synthesize handlesTermination = _handlesTermination;
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
#pragma mark Birth
|
||||
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id<SUSparkleUserDriverDelegate>)delegate
|
||||
- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id<SUStandardUserDriverDelegate>)delegate
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil) {
|
||||
@@ -210,7 +210,7 @@
|
||||
versionDisplayer = [self.delegate versionDisplayerForUserDriver:self];
|
||||
}
|
||||
|
||||
__weak SUSparkleUserDriver *weakSelf = self;
|
||||
__weak SUStandardUserDriver *weakSelf = self;
|
||||
self.activeUpdateAlert = [[SUUpdateAlert alloc] initWithAppcastItem:appcastItem host:self.host versionDisplayer:versionDisplayer allowsAutomaticUpdates:allowsAutomaticUpdates completionBlock:^(SUUpdateAlertChoice choice) {
|
||||
reply(choice);
|
||||
weakSelf.activeUpdateAlert = nil;
|
||||
@@ -223,7 +223,7 @@
|
||||
- (void)showAutomaticUpdateFoundWithAppcastItem:(SUAppcastItem *)appcastItem reply:(void (^)(SUUpdateAlertChoice))reply
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
__weak SUSparkleUserDriver *weakSelf = self;
|
||||
__weak SUStandardUserDriver *weakSelf = self;
|
||||
self.activeUpdateAlert = [[SUAutomaticUpdateAlert alloc] initWithAppcastItem:appcastItem host:self.host completionBlock:^(SUUpdateAlertChoice choice) {
|
||||
reply(choice);
|
||||
weakSelf.activeUpdateAlert = nil;
|
||||
@@ -349,7 +349,7 @@
|
||||
- (void)showAlert:(NSAlert *)alert
|
||||
{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
id <SUSparkleUserDriverDelegate> delegate = self.delegate;
|
||||
id <SUStandardUserDriverDelegate> delegate = self.delegate;
|
||||
|
||||
if ([delegate respondsToSelector:@selector(userDriverWillShowModalAlert:)]) {
|
||||
[delegate userDriverWillShowModalAlert:self];
|
||||
+4
-4
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// SUSparkleUserDriverRemoteDelegate.h
|
||||
// SUStandardUserDriverRemoteDelegate.h
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Mayur Pawashe on 3/2/16.
|
||||
@@ -13,9 +13,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@protocol SUUserDriver;
|
||||
|
||||
/*!
|
||||
A delegate protocol for Sparkle's user driver related to efficiency and reliablity when Sparkle's updater lives in a separate process
|
||||
A delegate protocol for Sparkle's standard user driver related to efficiency and reliablity when Sparkle's updater lives in a separate process
|
||||
*/
|
||||
@protocol SUSparkleUserDriverRemoteDelegate <NSObject>
|
||||
@protocol SUStandardUserDriverRemoteDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
@@ -53,7 +53,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
This is necessary to implement when automatic updates are possible and when the updater and user driver live in separate processes.
|
||||
|
||||
See -[SUSparkleUserDriver sendApplicationTerminationSignal] for more details on how to follow up
|
||||
See -[SUStandardUserDriver sendApplicationTerminationSignal] for more details on how to follow up
|
||||
|
||||
@param userDriver The user driver instance.
|
||||
*/
|
||||
+3
-3
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// SUSparkleUserDriverUIDelegate.h
|
||||
// SUStandardUserDriverUIDelegate.h
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Mayur Pawashe on 3/1/16.
|
||||
@@ -13,9 +13,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@protocol SUUserDriver, SUVersionDisplay;
|
||||
|
||||
/*!
|
||||
A delegate protocol for Sparkle's user driver related to user interactions
|
||||
A delegate protocol for Sparkle's standard user driver related to user interactions
|
||||
*/
|
||||
@protocol SUSparkleUserDriverUIDelegate <NSObject>
|
||||
@protocol SUStandardUserDriverUIDelegate <NSObject>
|
||||
|
||||
@optional
|
||||
|
||||
Vendored
+3
-3
@@ -326,7 +326,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey;
|
||||
- (id<SUVersionComparison>)versionComparatorForUpdater:(SUUpdater *)updater;
|
||||
|
||||
/*!
|
||||
@deprecated This method is no longer used. See SUSparkleUserUpdaterDriver delegate instead.
|
||||
@deprecated This method is no longer used. See SUStandardUserUpdaterDriver delegate instead.
|
||||
*/
|
||||
// Don't specify SUVersionDisplay in the return type, otherwise we'd have to forward declare a protocol that isn't used here anymore
|
||||
- (id)versionDisplayerForUpdater:(SUUpdater *)updater __deprecated;
|
||||
@@ -346,7 +346,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey;
|
||||
|
||||
\param updater The SUUpdater instance.
|
||||
|
||||
@deprecated See SUSparkleUserUpdaterDriver delegate instead
|
||||
@deprecated See SUStandardUserUpdaterDriver delegate instead
|
||||
*/
|
||||
- (void)updaterWillShowModalAlert:(SUUpdater *)updater __deprecated;
|
||||
|
||||
@@ -356,7 +356,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey;
|
||||
|
||||
\param updater The SUUpdater instance.
|
||||
|
||||
@deprecated See SUSparkleUserUpdaterDriver delegate instead
|
||||
@deprecated See SUStandardUserUpdaterDriver delegate instead
|
||||
*/
|
||||
- (void)updaterDidShowModalAlert:(SUUpdater *)updater __deprecated;
|
||||
|
||||
|
||||
Vendored
+3
-3
@@ -11,7 +11,7 @@
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class SUUpdater;
|
||||
@class SUSparkleUserDriver;
|
||||
@class SUStandardUserDriver;
|
||||
|
||||
/*!
|
||||
A controller class that instantiates a SUUpdater and allows binding UI to it.
|
||||
@@ -43,7 +43,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/*!
|
||||
Accessible property for the updater's user driver.
|
||||
*/
|
||||
@property (nonatomic, readonly) SUSparkleUserDriver *userDriver;
|
||||
@property (nonatomic, readonly) SUStandardUserDriver *userDriver;
|
||||
|
||||
/*!
|
||||
Explicitly checks for updates and displays a progress dialog while doing so.
|
||||
@@ -60,7 +60,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/*!
|
||||
Validates if the menu item for checkForUpdates: can be invoked or not
|
||||
|
||||
This validates the menu item by checking -[SUSparkleUserDriver updateInProgress]
|
||||
This validates the menu item by checking -[SUStandardUserDriver updateInProgress]
|
||||
*/
|
||||
- (BOOL)validateMenuItem:(NSMenuItem *)item;
|
||||
|
||||
|
||||
Vendored
+4
-4
@@ -9,17 +9,17 @@
|
||||
#import "SUUpdaterController.h"
|
||||
#import "SUUpdater.h"
|
||||
#import "SUHost.h"
|
||||
#import "SUSparkleUserDriver.h"
|
||||
#import "SUStandardUserDriver.h"
|
||||
#import "SUConstants.h"
|
||||
#import "SULog.h"
|
||||
#import "SUSparkleUserDriver.h"
|
||||
#import "SUStandardUserDriver.h"
|
||||
|
||||
static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext";
|
||||
|
||||
@interface SUUpdaterController ()
|
||||
|
||||
@property (nonatomic) SUUpdater *updater;
|
||||
@property (nonatomic) SUSparkleUserDriver *userDriver;
|
||||
@property (nonatomic) SUStandardUserDriver *userDriver;
|
||||
|
||||
@end
|
||||
|
||||
@@ -35,7 +35,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults
|
||||
[self registerAsObserver];
|
||||
|
||||
NSBundle *hostBundle = [NSBundle mainBundle];
|
||||
_userDriver = [[SUSparkleUserDriver alloc] initWithHostBundle:hostBundle delegate:nil];
|
||||
_userDriver = [[SUStandardUserDriver alloc] initWithHostBundle:hostBundle delegate:nil];
|
||||
_updater = [[SUUpdater alloc] initWithHostBundle:hostBundle userDriver:_userDriver delegate:nil];
|
||||
}
|
||||
return self;
|
||||
|
||||
Vendored
+3
-3
@@ -22,8 +22,8 @@
|
||||
#import "SUErrors.h"
|
||||
#import "SUUpdatePermissionPromptResult.h"
|
||||
#import "SUUserDriver.h"
|
||||
#import "SUSparkleUserDriver.h"
|
||||
#import "SUSparkleUserDriverUIDelegate.h"
|
||||
#import "SUSparkleUserDriverRemoteDelegate.h"
|
||||
#import "SUStandardUserDriver.h"
|
||||
#import "SUStandardUserDriverUIDelegate.h"
|
||||
#import "SUStandardUserDriverRemoteDelegate.h"
|
||||
|
||||
#endif
|
||||
@@ -9,9 +9,9 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import <Sparkle/Sparkle.h>
|
||||
|
||||
@protocol SUSparkleUserDriverDelegate;
|
||||
@protocol SUStandardUserDriverDelegate;
|
||||
|
||||
@interface SURemoteUpdateSettingsWindowController : NSWindowController <SUSparkleUserDriverDelegate>
|
||||
@interface SURemoteUpdateSettingsWindowController : NSWindowController <SUStandardUserDriverDelegate>
|
||||
|
||||
- (NSApplicationTerminateReply)sendTerminationSignal;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
@interface SURemoteUpdateSettingsWindowController ()
|
||||
|
||||
@property (nonatomic) NSXPCConnection *connection;
|
||||
@property (nonatomic) SUSparkleUserDriver *userDriver;
|
||||
@property (nonatomic) SUStandardUserDriver *userDriver;
|
||||
|
||||
@property (nonatomic) IBOutlet NSButton *automaticallyChecksForUpdatesButton;
|
||||
@property (nonatomic) IBOutlet NSButton *automaticallyDownloadUpdatesButton;
|
||||
@@ -39,7 +39,7 @@
|
||||
self.connection = [[NSXPCConnection alloc] initWithServiceName:@"org.sparkle-project.TestAppHelper"];
|
||||
|
||||
self.connection.exportedInterface = [NSXPCInterface interfaceWithProtocol:@protocol(SUUserDriver)];
|
||||
self.userDriver = [[SUSparkleUserDriver alloc] initWithHostBundle:[NSBundle mainBundle] delegate:self];
|
||||
self.userDriver = [[SUStandardUserDriver alloc] initWithHostBundle:[NSBundle mainBundle] delegate:self];
|
||||
self.connection.exportedObject = self.userDriver;
|
||||
|
||||
self.connection.remoteObjectInterface = [NSXPCInterface interfaceWithProtocol:@protocol(TestAppHelperProtocol)];
|
||||
|
||||
Reference in new issue
Block a user