From d1c2faf7e51f7d20ab63459762f69fc3554efe0d Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 12 Aug 2016 23:18:53 -0400 Subject: [PATCH] Fixing some old SUUpdater references --- Sparkle/SPUStandardUpdaterController.h | 8 ++++---- Sparkle/SPUUpdater.h | 4 ++-- Sparkle/SUScheduledUpdateDriver.m | 2 +- Tests/SUUpdaterTest.m | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Sparkle/SPUStandardUpdaterController.h b/Sparkle/SPUStandardUpdaterController.h index 58808ed8..e5c45f46 100644 --- a/Sparkle/SPUStandardUpdaterController.h +++ b/Sparkle/SPUStandardUpdaterController.h @@ -15,16 +15,16 @@ NS_ASSUME_NONNULL_BEGIN @protocol SPUUserDriver, SPUStandardUserDriverProtocol, SPUUpdaterDelegate, SPUStandardUserDriverDelegate; /*! - A controller class that instantiates a SUUpdater and allows binding UI to it. + A controller class that instantiates a SPUUpdater and allows binding UI to it. This class is meant to be instantiated in a nib. When doing so, the controller's updater target's the application's main bundle, and uses Sparkle's standard user interface. Typically, this class is used by sticking it as a custom NSObject subclass in an Interface Builder nib (probably in MainMenu). - The controller creates an SUUpdater instance and allows hooking up the check for updates action and menu item validation. It also allows hooking + The controller creates an SPUUpdater instance and allows hooking up the check for updates action and menu item validation. It also allows hooking up the updater's and user driver's delegates. This controller class may not be valuable to you if: - * You want to control or defer the instantiation of an SUUpdater, or don't want to be tied into a nib's instantiation, or don't want to use a nib + * You want to control or defer the instantiation of an SPUUpdater, or don't want to be tied into a nib's instantiation, or don't want to use a nib * You want to target a bundle that's not the main bundle * You want to separate Sparkle's updater and user interface into separate processes * You want to provide a custom user interface, or perhaps one that provides little-to-none @@ -71,7 +71,7 @@ SU_EXPORT @interface SPUStandardUpdaterController : NSObject and Sparkle will check for updates and report back its findings verbosely when it is invoked. - This action checks updates by invoking -[SUUpdater checkForUpdates] + This action checks updates by invoking -[SPUUpdater checkForUpdates] */ - (IBAction)checkForUpdates:(id)sender; diff --git a/Sparkle/SPUUpdater.h b/Sparkle/SPUUpdater.h index 0d86ad5c..9eab7d94 100644 --- a/Sparkle/SPUUpdater.h +++ b/Sparkle/SPUUpdater.h @@ -117,8 +117,8 @@ SU_EXPORT @interface SPUUpdater : NSObject update to that version. However, the delegate methods - SUUpdaterDelegate::updater:didFindValidUpdate: and - SUUpdaterDelegate::updaterDidNotFindUpdate: will be called, + SPUUpdaterDelegate::updater:didFindValidUpdate: and + SPUUpdaterDelegate::updaterDidNotFindUpdate: will be called, so you can use that information in your UI. */ - (void)checkForUpdateInformation; diff --git a/Sparkle/SUScheduledUpdateDriver.m b/Sparkle/SUScheduledUpdateDriver.m index 95047c9a..a1a34000 100644 --- a/Sparkle/SUScheduledUpdateDriver.m +++ b/Sparkle/SUScheduledUpdateDriver.m @@ -9,7 +9,7 @@ #import "SUScheduledUpdateDriver.h" #import "SUHost.h" #import "SUErrors.h" -#import "SUUpdaterDelegate.h" +#import "SPUUpdaterDelegate.h" #import "SPUUserDriver.h" #ifdef _APPKITDEFINES_H diff --git a/Tests/SUUpdaterTest.m b/Tests/SUUpdaterTest.m index 85210c7b..4b18b12d 100644 --- a/Tests/SUUpdaterTest.m +++ b/Tests/SUUpdaterTest.m @@ -10,14 +10,14 @@ #import "SUConstants.h" #import "SPUUpdater.h" #import "SPUStandardUserDriver.h" -#import "SUUpdaterDelegate.h" +#import "SPUUpdaterDelegate.h" // This user driver does nothing -@interface SUUselessUserDriver : NSObject +@interface SPUUselessUserDriver : NSObject @end -@implementation SUUselessUserDriver +@implementation SPUUselessUserDriver - (void)showCanCheckForUpdates:(BOOL)__unused canCheckForUpdates {} @@ -63,7 +63,7 @@ @end -@interface SUUpdaterTest : XCTestCase +@interface SUUpdaterTest : XCTestCase @property (strong) SPUUpdater *updater; @end @@ -74,7 +74,7 @@ - (void)setUp { [super setUp]; - self.updater = [[SPUUpdater alloc] initWithHostBundle:[NSBundle bundleForClass:[self class]] userDriver:[[SUUselessUserDriver alloc] init] delegate:self]; + self.updater = [[SPUUpdater alloc] initWithHostBundle:[NSBundle bundleForClass:[self class]] userDriver:[[SPUUselessUserDriver alloc] init] delegate:self]; NSError *error = nil; if (![self.updater startUpdater:&error]) {