mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Fixing some old SUUpdater references
This commit is contained in:
1 parent
85914936d7
commit
d1c2faf7e5
4 files changed
+12
-12
No files matched your search
+4
-4
@@ -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;
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
|
||||
Vendored
+1
-1
@@ -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
|
||||
|
||||
@@ -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 <SPUUserDriver>
|
||||
@interface SPUUselessUserDriver : NSObject <SPUUserDriver>
|
||||
|
||||
@end
|
||||
|
||||
@implementation SUUselessUserDriver
|
||||
@implementation SPUUselessUserDriver
|
||||
|
||||
- (void)showCanCheckForUpdates:(BOOL)__unused canCheckForUpdates {}
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
@end
|
||||
|
||||
@interface SUUpdaterTest : XCTestCase <SUUpdaterDelegate>
|
||||
@interface SUUpdaterTest : XCTestCase <SPUUpdaterDelegate>
|
||||
@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]) {
|
||||
|
||||
Reference in new issue
Block a user