mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Move private ivars to @implementation.
Declaration of ivars in @interface is deprecated in modern runtime.
This commit is contained in:
1 parent
4ac95c9560
commit
7e4f74af14
23 files changed
+84
-77
No files matched your search
Vendored
+13
-13
@@ -19,19 +19,6 @@ static const NSTimeInterval SUInstallationTimeLimit = 5;
|
||||
static const NSTimeInterval SUParentQuitCheckInterval = .5;
|
||||
|
||||
@interface TerminationListener : NSObject <SUInstallerDelegate>
|
||||
{
|
||||
const char *hostpath;
|
||||
const char *executablepath;
|
||||
pid_t parentprocessid;
|
||||
const char *folderpath;
|
||||
NSString *selfPath;
|
||||
NSString *installationPath;
|
||||
NSTimer *watchdogTimer;
|
||||
NSTimer *longInstallationTimer;
|
||||
SUHost *host;
|
||||
BOOL shouldRelaunch;
|
||||
BOOL shouldShowUI;
|
||||
}
|
||||
|
||||
- (void) parentHasQuit;
|
||||
|
||||
@@ -44,6 +31,19 @@ static const NSTimeInterval SUParentQuitCheckInterval = .5;
|
||||
@end
|
||||
|
||||
@implementation TerminationListener
|
||||
{
|
||||
const char *hostpath;
|
||||
const char *executablepath;
|
||||
pid_t parentprocessid;
|
||||
const char *folderpath;
|
||||
NSString *selfPath;
|
||||
NSString *installationPath;
|
||||
NSTimer *watchdogTimer;
|
||||
NSTimer *longInstallationTimer;
|
||||
SUHost *host;
|
||||
BOOL shouldRelaunch;
|
||||
BOOL shouldShowUI;
|
||||
}
|
||||
|
||||
- (instancetype) initWithHostPath:(const char *)inhostpath executablePath:(const char *)execpath parentProcessId:(pid_t)ppid folderPath:(const char*)infolderpath shouldRelaunch:(BOOL)relaunch shouldShowUI:(BOOL)showUI selfPath:(NSString*)inSelfPath
|
||||
{
|
||||
|
||||
Vendored
+1
-5
@@ -13,11 +13,7 @@
|
||||
|
||||
@class SUAppcastItem;
|
||||
@interface SUAppcast : NSObject<NSURLDownloadDelegate>
|
||||
{
|
||||
@private
|
||||
NSString *downloadFilename;
|
||||
NSURLDownload *download;
|
||||
}
|
||||
|
||||
@property (weak) id<SUAppcastDelegate> delegate;
|
||||
@property (copy) NSString *userAgentString;
|
||||
|
||||
|
||||
Vendored
+5
@@ -41,6 +41,11 @@
|
||||
@end
|
||||
|
||||
@implementation SUAppcast
|
||||
{
|
||||
NSString *downloadFilename;
|
||||
NSURLDownload *download;
|
||||
}
|
||||
|
||||
@synthesize downloadFilename;
|
||||
@synthesize delegate;
|
||||
@synthesize userAgentString;
|
||||
|
||||
Vendored
-7
@@ -14,13 +14,6 @@
|
||||
#import "SUAutomaticUpdateAlert.h"
|
||||
|
||||
@interface SUAutomaticUpdateDriver : SUBasicUpdateDriver <SUUnarchiverDelegate, SUAutomaticUpdateAlertDelegate>
|
||||
{
|
||||
@private
|
||||
BOOL postponingInstallation, showErrors;
|
||||
BOOL willUpdateOnTermination;
|
||||
SUAutomaticUpdateAlert *alert;
|
||||
NSTimer *showUpdateAlertTimer;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Vendored
+6
@@ -16,6 +16,12 @@
|
||||
static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 24 * 7;
|
||||
|
||||
@implementation SUAutomaticUpdateDriver
|
||||
{
|
||||
BOOL postponingInstallation, showErrors;
|
||||
BOOL willUpdateOnTermination;
|
||||
SUAutomaticUpdateAlert *alert;
|
||||
NSTimer *showUpdateAlertTimer;
|
||||
}
|
||||
|
||||
- (void)showUpdateAlert
|
||||
{
|
||||
|
||||
Vendored
+3
-8
@@ -16,14 +16,9 @@
|
||||
|
||||
@class SUAppcastItem, SUHost;
|
||||
@interface SUBasicUpdateDriver : SUUpdateDriver<NSURLDownloadDelegate, SUUnarchiverDelegate, SUAppcastDelegate> {
|
||||
SUAppcastItem *updateItem;
|
||||
SUAppcastItem *nonDeltaUpdateItem;
|
||||
|
||||
NSURLDownload *download;
|
||||
NSString *downloadPath;
|
||||
NSString *tempDir;
|
||||
|
||||
NSString *relaunchPath;
|
||||
SUAppcastItem *updateItem;
|
||||
NSURLDownload *download;
|
||||
NSString *downloadPath;
|
||||
}
|
||||
|
||||
- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host;
|
||||
|
||||
Vendored
+5
@@ -31,6 +31,11 @@
|
||||
#endif
|
||||
|
||||
@implementation SUBasicUpdateDriver
|
||||
{
|
||||
SUAppcastItem *nonDeltaUpdateItem;
|
||||
NSString *tempDir;
|
||||
NSString *relaunchPath;
|
||||
}
|
||||
|
||||
- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost
|
||||
{
|
||||
|
||||
Vendored
+1
-5
@@ -11,11 +11,7 @@
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
|
||||
@interface SUHost : NSObject
|
||||
{
|
||||
@private
|
||||
NSString *defaultsDomain;
|
||||
BOOL usesStandardUserDefaults;
|
||||
}
|
||||
|
||||
@property (strong, readonly) NSBundle *bundle;
|
||||
|
||||
+ (NSString *)systemVersionString;
|
||||
|
||||
Vendored
+5
@@ -28,6 +28,11 @@ typedef struct {
|
||||
@end
|
||||
|
||||
@implementation SUHost
|
||||
{
|
||||
NSString *defaultsDomain;
|
||||
BOOL usesStandardUserDefaults;
|
||||
}
|
||||
|
||||
@synthesize bundle;
|
||||
|
||||
- (instancetype)initWithBundle:(NSBundle *)aBundle
|
||||
|
||||
Vendored
-4
@@ -13,10 +13,6 @@
|
||||
#import "SUUIBasedUpdateDriver.h"
|
||||
|
||||
@interface SUScheduledUpdateDriver : SUUIBasedUpdateDriver
|
||||
{
|
||||
@private
|
||||
BOOL showErrors;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Vendored
+3
@@ -14,6 +14,9 @@
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
|
||||
@implementation SUScheduledUpdateDriver
|
||||
{
|
||||
BOOL showErrors;
|
||||
}
|
||||
|
||||
- (void)didFindValidUpdate
|
||||
{
|
||||
|
||||
Vendored
-4
@@ -16,10 +16,6 @@
|
||||
@class SUStatusController;
|
||||
|
||||
@interface SUUIBasedUpdateDriver : SUBasicUpdateDriver <SUUnarchiverDelegate, SUUpdateAlertDelegate>
|
||||
{
|
||||
SUStatusController *statusController;
|
||||
SUUpdateAlert *updateAlert;
|
||||
}
|
||||
|
||||
- (void)showModalAlert:(NSAlert *)alert;
|
||||
- (IBAction)cancelDownload: (id)sender;
|
||||
|
||||
Vendored
+4
@@ -15,6 +15,10 @@
|
||||
#import "SUConstants.h"
|
||||
|
||||
@implementation SUUIBasedUpdateDriver
|
||||
{
|
||||
SUStatusController *statusController;
|
||||
SUUpdateAlert *updateAlert;
|
||||
}
|
||||
|
||||
- (void)didFindValidUpdate
|
||||
{
|
||||
|
||||
Vendored
+1
-11
@@ -23,18 +23,8 @@ typedef enum
|
||||
} SUUpdateAlertChoice;
|
||||
|
||||
@class WebView, SUAppcastItem, SUHost;
|
||||
@interface SUUpdateAlert : SUWindowController {
|
||||
SUAppcastItem *updateItem;
|
||||
SUHost *host;
|
||||
@interface SUUpdateAlert : SUWindowController
|
||||
|
||||
IBOutlet WebView *releaseNotesView;
|
||||
IBOutlet NSTextField *description;
|
||||
IBOutlet NSButton *installButton; // UK 2007-08-31.
|
||||
IBOutlet NSButton *skipButton;
|
||||
IBOutlet NSButton *laterButton;
|
||||
NSProgressIndicator *releaseNotesSpinner;
|
||||
BOOL webViewFinishedLoading;
|
||||
}
|
||||
@property (weak) id<SUUpdateAlertDelegate> delegate;
|
||||
@property (weak) id<SUVersionDisplay> versionDisplayer;
|
||||
|
||||
|
||||
Vendored
+13
@@ -26,6 +26,19 @@
|
||||
|
||||
|
||||
@implementation SUUpdateAlert
|
||||
{
|
||||
SUAppcastItem *updateItem;
|
||||
SUHost *host;
|
||||
|
||||
IBOutlet WebView *releaseNotesView;
|
||||
IBOutlet NSTextField *description;
|
||||
IBOutlet NSButton *installButton; // UK 2007-08-31.
|
||||
IBOutlet NSButton *skipButton;
|
||||
IBOutlet NSButton *laterButton;
|
||||
NSProgressIndicator *releaseNotesSpinner;
|
||||
BOOL webViewFinishedLoading;
|
||||
}
|
||||
|
||||
@synthesize delegate;
|
||||
@synthesize versionDisplayer;
|
||||
|
||||
|
||||
Vendored
-1
@@ -17,7 +17,6 @@ extern NSString * const SUUpdateDriverFinishedNotification;
|
||||
@interface SUUpdateDriver : NSObject<NSURLDownloadDelegate>
|
||||
{
|
||||
SUUpdater *updater; //assigned
|
||||
NSURL *appcastURL;
|
||||
BOOL isInterruptible;
|
||||
}
|
||||
@property (strong) SUHost *host;
|
||||
|
||||
Vendored
+4
@@ -12,6 +12,10 @@
|
||||
NSString * const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished";
|
||||
|
||||
@implementation SUUpdateDriver
|
||||
{
|
||||
NSURL *appcastURL;
|
||||
}
|
||||
|
||||
@synthesize host;
|
||||
@synthesize interruptible = isInterruptible;
|
||||
@synthesize finished;
|
||||
|
||||
Vendored
+2
-9
@@ -19,15 +19,8 @@ typedef enum {
|
||||
@protocol SUUpdatePermissionPromptDelegate;
|
||||
|
||||
@class SUHost;
|
||||
@interface SUUpdatePermissionPrompt : SUWindowController {
|
||||
SUHost *host;
|
||||
NSArray *systemProfileInformationArray;
|
||||
id<SUUpdatePermissionPromptDelegate> delegate;
|
||||
IBOutlet NSTextField *descriptionTextField;
|
||||
IBOutlet NSView *moreInfoView;
|
||||
IBOutlet NSButton *moreInfoButton;
|
||||
IBOutlet NSTableView *profileTableView;
|
||||
}
|
||||
@interface SUUpdatePermissionPrompt : SUWindowController
|
||||
|
||||
+ (void)promptWithHost:(SUHost *)aHost systemProfile:(NSArray *)profile delegate:(id<SUUpdatePermissionPromptDelegate>)d;
|
||||
- (IBAction)toggleMoreInfo:(id)sender;
|
||||
- (IBAction)finishPrompt:(id)sender;
|
||||
|
||||
Vendored
+9
@@ -16,6 +16,15 @@
|
||||
@end
|
||||
|
||||
@implementation SUUpdatePermissionPrompt
|
||||
{
|
||||
SUHost *host;
|
||||
NSArray *systemProfileInformationArray;
|
||||
id<SUUpdatePermissionPromptDelegate> delegate;
|
||||
IBOutlet NSTextField *descriptionTextField;
|
||||
IBOutlet NSView *moreInfoView;
|
||||
IBOutlet NSButton *moreInfoButton;
|
||||
IBOutlet NSTableView *profileTableView;
|
||||
}
|
||||
|
||||
@synthesize isShowingMoreInfo = _isShowingMoreInfo, shouldSendProfile = _shouldSendProfile;
|
||||
|
||||
|
||||
Vendored
-5
@@ -23,12 +23,7 @@
|
||||
and automatically schedule and control checks for updates.
|
||||
*/
|
||||
@interface SUUpdater : NSObject
|
||||
{
|
||||
@private
|
||||
SUUpdateDriver *driver;
|
||||
|
||||
SUHost *host;
|
||||
}
|
||||
@property (weak) IBOutlet id<SUUpdaterDelegate> delegate;
|
||||
|
||||
+ (SUUpdater *)sharedUpdater;
|
||||
|
||||
Vendored
+5
@@ -44,6 +44,11 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
|
||||
@end
|
||||
|
||||
@implementation SUUpdater
|
||||
{
|
||||
SUUpdateDriver *driver;
|
||||
SUHost *host;
|
||||
}
|
||||
|
||||
@synthesize delegate;
|
||||
@synthesize checkTimer;
|
||||
@synthesize userAgentString = customUserAgentString;
|
||||
|
||||
-5
@@ -13,11 +13,6 @@
|
||||
#import "SUUIBasedUpdateDriver.h"
|
||||
|
||||
@interface SUUserInitiatedUpdateDriver : SUUIBasedUpdateDriver
|
||||
{
|
||||
@private
|
||||
SUStatusController *checkingController;
|
||||
BOOL isCanceled;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
+4
@@ -12,6 +12,10 @@
|
||||
#import "SUHost.h"
|
||||
|
||||
@implementation SUUserInitiatedUpdateDriver
|
||||
{
|
||||
SUStatusController *checkingController;
|
||||
BOOL isCanceled;
|
||||
}
|
||||
|
||||
- (void)closeCheckingWindow
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user