Move private ivars to @implementation.

Declaration of ivars in @interface is deprecated in modern runtime.
This commit is contained in:
Jake Petroules committed 2014-07-01 22:08:13 -04:00
1 parent 4ac95c9560
commit 7e4f74af14
23 files changed
+84 -77

No files matched your search

+13 -13
View File
@@ -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
{
+1 -5
View File
@@ -13,11 +13,7 @@
@class SUAppcastItem;
@interface SUAppcast : NSObject<NSURLDownloadDelegate>
{
@private
NSString *downloadFilename;
NSURLDownload *download;
}
@property (weak) id<SUAppcastDelegate> delegate;
@property (copy) NSString *userAgentString;
+5
View File
@@ -41,6 +41,11 @@
@end
@implementation SUAppcast
{
NSString *downloadFilename;
NSURLDownload *download;
}
@synthesize downloadFilename;
@synthesize delegate;
@synthesize userAgentString;
-7
View File
@@ -14,13 +14,6 @@
#import "SUAutomaticUpdateAlert.h"
@interface SUAutomaticUpdateDriver : SUBasicUpdateDriver <SUUnarchiverDelegate, SUAutomaticUpdateAlertDelegate>
{
@private
BOOL postponingInstallation, showErrors;
BOOL willUpdateOnTermination;
SUAutomaticUpdateAlert *alert;
NSTimer *showUpdateAlertTimer;
}
@end
+6
View File
@@ -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
{
+3 -8
View File
@@ -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;
+5
View File
@@ -31,6 +31,11 @@
#endif
@implementation SUBasicUpdateDriver
{
SUAppcastItem *nonDeltaUpdateItem;
NSString *tempDir;
NSString *relaunchPath;
}
- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost
{
+1 -5
View File
@@ -11,11 +11,7 @@
#import "SUVersionComparisonProtocol.h"
@interface SUHost : NSObject
{
@private
NSString *defaultsDomain;
BOOL usesStandardUserDefaults;
}
@property (strong, readonly) NSBundle *bundle;
+ (NSString *)systemVersionString;
+5
View File
@@ -28,6 +28,11 @@ typedef struct {
@end
@implementation SUHost
{
NSString *defaultsDomain;
BOOL usesStandardUserDefaults;
}
@synthesize bundle;
- (instancetype)initWithBundle:(NSBundle *)aBundle
-4
View File
@@ -13,10 +13,6 @@
#import "SUUIBasedUpdateDriver.h"
@interface SUScheduledUpdateDriver : SUUIBasedUpdateDriver
{
@private
BOOL showErrors;
}
@end
+3
View File
@@ -14,6 +14,9 @@
#import "SUVersionComparisonProtocol.h"
@implementation SUScheduledUpdateDriver
{
BOOL showErrors;
}
- (void)didFindValidUpdate
{
-4
View File
@@ -16,10 +16,6 @@
@class SUStatusController;
@interface SUUIBasedUpdateDriver : SUBasicUpdateDriver <SUUnarchiverDelegate, SUUpdateAlertDelegate>
{
SUStatusController *statusController;
SUUpdateAlert *updateAlert;
}
- (void)showModalAlert:(NSAlert *)alert;
- (IBAction)cancelDownload: (id)sender;
+4
View File
@@ -15,6 +15,10 @@
#import "SUConstants.h"
@implementation SUUIBasedUpdateDriver
{
SUStatusController *statusController;
SUUpdateAlert *updateAlert;
}
- (void)didFindValidUpdate
{
+1 -11
View File
@@ -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;
+13
View File
@@ -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;
-1
View File
@@ -17,7 +17,6 @@ extern NSString * const SUUpdateDriverFinishedNotification;
@interface SUUpdateDriver : NSObject<NSURLDownloadDelegate>
{
SUUpdater *updater; //assigned
NSURL *appcastURL;
BOOL isInterruptible;
}
@property (strong) SUHost *host;
+4
View File
@@ -12,6 +12,10 @@
NSString * const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished";
@implementation SUUpdateDriver
{
NSURL *appcastURL;
}
@synthesize host;
@synthesize interruptible = isInterruptible;
@synthesize finished;
+2 -9
View File
@@ -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;
+9
View File
@@ -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;
-5
View File
@@ -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;
+5
View File
@@ -44,6 +44,11 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
@end
@implementation SUUpdater
{
SUUpdateDriver *driver;
SUHost *host;
}
@synthesize delegate;
@synthesize checkTimer;
@synthesize userAgentString = customUserAgentString;
-5
View File
@@ -13,11 +13,6 @@
#import "SUUIBasedUpdateDriver.h"
@interface SUUserInitiatedUpdateDriver : SUUIBasedUpdateDriver
{
@private
SUStatusController *checkingController;
BOOL isCanceled;
}
@end
+4
View File
@@ -12,6 +12,10 @@
#import "SUHost.h"
@implementation SUUserInitiatedUpdateDriver
{
SUStatusController *checkingController;
BOOL isCanceled;
}
- (void)closeCheckingWindow
{