From f5a9cf14de5bbbdd0d55b875064e8eb9f3f2ee28 Mon Sep 17 00:00:00 2001 From: Zorg Date: Thu, 3 Mar 2016 18:29:15 -0500 Subject: [PATCH] s/SUSparkleUserDriver/SUStandardUserDriver/ --- Sparkle.xcodeproj/project.pbxproj | 32 +++++++++---------- ...kleUserDriver.h => SUStandardUserDriver.h} | 20 ++++++------ ...kleUserDriver.m => SUStandardUserDriver.m} | 20 ++++++------ ...h => SUStandardUserDriverRemoteDelegate.h} | 8 ++--- ...ate.h => SUStandardUserDriverUIDelegate.h} | 6 ++-- Sparkle/SUUpdater.h | 6 ++-- Sparkle/SUUpdaterController.h | 6 ++-- Sparkle/SUUpdaterController.m | 8 ++--- Sparkle/Sparkle.h | 6 ++-- .../SURemoteUpdateSettingsWindowController.h | 4 +-- .../SURemoteUpdateSettingsWindowController.m | 4 +-- 11 files changed, 60 insertions(+), 60 deletions(-) rename Sparkle/{SUSparkleUserDriver.h => SUStandardUserDriver.h} (72%) rename Sparkle/{SUSparkleUserDriver.m => SUStandardUserDriver.m} (97%) rename Sparkle/{SUSparkleUserDriverRemoteDelegate.h => SUStandardUserDriverRemoteDelegate.h} (86%) rename Sparkle/{SUSparkleUserDriverUIDelegate.h => SUStandardUserDriverUIDelegate.h} (86%) diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 7e96bdc4..be119b5a 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -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 = ""; }; 725602D41C83551C00DAA70E /* SUApplicationInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUApplicationInfo.m; sourceTree = ""; }; 725CB9561C7120410064365A /* SUUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserDriver.h; sourceTree = ""; }; - 725CB9581C7121830064365A /* SUSparkleUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSparkleUserDriver.h; sourceTree = ""; }; - 725CB9591C7121830064365A /* SUSparkleUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUSparkleUserDriver.m; sourceTree = ""; }; + 725CB9581C7121830064365A /* SUStandardUserDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriver.h; sourceTree = ""; }; + 725CB9591C7121830064365A /* SUStandardUserDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStandardUserDriver.m; sourceTree = ""; }; 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaCreate.m; sourceTree = ""; }; 7268AC641AD634E400C3E0C1 /* SUBinaryDeltaCreate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaCreate.h; sourceTree = ""; }; 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 = ""; }; - 726E4A0D1C86881600C57C6A /* SUSparkleUserDriverUIDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSparkleUserDriverUIDelegate.h; sourceTree = ""; }; - 726E4A0F1C86B5A200C57C6A /* SUSparkleUserDriverRemoteDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSparkleUserDriverRemoteDelegate.h; sourceTree = ""; }; + 726E4A0D1C86881600C57C6A /* SUStandardUserDriverUIDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverUIDelegate.h; sourceTree = ""; }; + 726E4A0F1C86B5A200C57C6A /* SUStandardUserDriverRemoteDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardUserDriverRemoteDelegate.h; sourceTree = ""; }; 726E4A111C86C44A00C57C6A /* Sparkle-Test-App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "Sparkle-Test-App.entitlements"; sourceTree = ""; }; 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 = ""; }; @@ -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 */, diff --git a/Sparkle/SUSparkleUserDriver.h b/Sparkle/SUStandardUserDriver.h similarity index 72% rename from Sparkle/SUSparkleUserDriver.h rename to Sparkle/SUStandardUserDriver.h index e731f38d..f1bbfb24 100644 --- a/Sparkle/SUSparkleUserDriver.h +++ b/Sparkle/SUStandardUserDriver.h @@ -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 +@protocol SUStandardUserDriverDelegate @end /*! - Sparkle's standard built-in driver for user updater interactions + Sparkle's standard built-in user driver for updater interactions */ -@interface SUSparkleUserDriver : NSObject +@interface SUStandardUserDriver : NSObject /*! 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 )delegate; +- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(_Nullable id )delegate; /*! Readable and writable property for this user driver's delegate */ -@property (nonatomic, weak, nullable) id delegate; +@property (nonatomic, weak, nullable) id delegate; /*! Indicates whether or not an update is in progress as far as the user is concerned diff --git a/Sparkle/SUSparkleUserDriver.m b/Sparkle/SUStandardUserDriver.m similarity index 97% rename from Sparkle/SUSparkleUserDriver.m rename to Sparkle/SUStandardUserDriver.m index d7bbc245..95060216 100644 --- a/Sparkle/SUSparkleUserDriver.m +++ b/Sparkle/SUStandardUserDriver.m @@ -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)delegate +- (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(id)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 delegate = self.delegate; + id delegate = self.delegate; if ([delegate respondsToSelector:@selector(userDriverWillShowModalAlert:)]) { [delegate userDriverWillShowModalAlert:self]; diff --git a/Sparkle/SUSparkleUserDriverRemoteDelegate.h b/Sparkle/SUStandardUserDriverRemoteDelegate.h similarity index 86% rename from Sparkle/SUSparkleUserDriverRemoteDelegate.h rename to Sparkle/SUStandardUserDriverRemoteDelegate.h index 6d180ff3..def73b14 100644 --- a/Sparkle/SUSparkleUserDriverRemoteDelegate.h +++ b/Sparkle/SUStandardUserDriverRemoteDelegate.h @@ -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 +@protocol SUStandardUserDriverRemoteDelegate @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. */ diff --git a/Sparkle/SUSparkleUserDriverUIDelegate.h b/Sparkle/SUStandardUserDriverUIDelegate.h similarity index 86% rename from Sparkle/SUSparkleUserDriverUIDelegate.h rename to Sparkle/SUStandardUserDriverUIDelegate.h index 339b1aac..d590b8d3 100644 --- a/Sparkle/SUSparkleUserDriverUIDelegate.h +++ b/Sparkle/SUStandardUserDriverUIDelegate.h @@ -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 +@protocol SUStandardUserDriverUIDelegate @optional diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h index a0d41b75..24b0e280 100644 --- a/Sparkle/SUUpdater.h +++ b/Sparkle/SUUpdater.h @@ -326,7 +326,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; - (id)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; diff --git a/Sparkle/SUUpdaterController.h b/Sparkle/SUUpdaterController.h index cd4f0b3a..1159d777 100644 --- a/Sparkle/SUUpdaterController.h +++ b/Sparkle/SUUpdaterController.h @@ -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; diff --git a/Sparkle/SUUpdaterController.m b/Sparkle/SUUpdaterController.m index 06348fe8..2eda792d 100644 --- a/Sparkle/SUUpdaterController.m +++ b/Sparkle/SUUpdaterController.m @@ -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; diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index 382fcad1..d3e9af61 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -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 diff --git a/TestApplication/SURemoteUpdateSettingsWindowController.h b/TestApplication/SURemoteUpdateSettingsWindowController.h index e70592a9..f1be639b 100644 --- a/TestApplication/SURemoteUpdateSettingsWindowController.h +++ b/TestApplication/SURemoteUpdateSettingsWindowController.h @@ -9,9 +9,9 @@ #import #import -@protocol SUSparkleUserDriverDelegate; +@protocol SUStandardUserDriverDelegate; -@interface SURemoteUpdateSettingsWindowController : NSWindowController +@interface SURemoteUpdateSettingsWindowController : NSWindowController - (NSApplicationTerminateReply)sendTerminationSignal; diff --git a/TestApplication/SURemoteUpdateSettingsWindowController.m b/TestApplication/SURemoteUpdateSettingsWindowController.m index 3acee991..783564a6 100644 --- a/TestApplication/SURemoteUpdateSettingsWindowController.m +++ b/TestApplication/SURemoteUpdateSettingsWindowController.m @@ -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)];