Remove userDriver and delegate properties from SPUUpdater

Until I find a good reason to have them there, they should not be publicly available.
I actually found a couple bugs from code that was accidently referencing them.
This commit is contained in:
Zorg committed 2016-08-13 21:32:31 -04:00
1 parent 32d9fd6526
commit 73f49ce573
3 files changed
+6 -7

No files matched your search

+1 -4
View File
@@ -65,9 +65,6 @@ SU_EXPORT @interface SPUUpdater : NSObject
*/
- (BOOL)startUpdater:(NSError * __autoreleasing *)error;
@property (weak, readonly, nullable) id<SPUUpdaterDelegate> delegate;
@property (nonatomic, readonly) id<SPUUserDriver> userDriver;
@property (readonly, strong) NSBundle *hostBundle;
@property (strong, readonly) NSBundle *sparkleBundle;
@@ -91,7 +88,7 @@ SU_EXPORT @interface SPUUpdater : NSObject
@property (nonatomic) BOOL automaticallyDownloadsUpdates;
/*!
Checks for updates, and displays progress while doing so
Checks for updates, and displays progress while doing so.
This is meant for users initiating an update check
*/
+2
View File
@@ -44,6 +44,8 @@ NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotification
@property (readonly, copy) NSURL *parameterizedFeedURL;
@property (nonatomic, readonly) id<SPUUserDriver> userDriver;
@property (weak, readonly, nullable) id<SPUUpdaterDelegate> delegate;
@property (nonatomic) id <SUUpdateDriver> driver;
@property (nonatomic, readonly) SUHost *host;
@property (nonatomic, readonly) NSBundle *applicationBundle;
+3 -3
View File
@@ -231,14 +231,14 @@ static NSMutableDictionary *sharedUpdaters = nil;
- (void)standardUserDriverWillShowModalAlert
{
if ([self.updater.delegate respondsToSelector:@selector(updaterWillShowModalAlert:)]) {
if ([self.delegate respondsToSelector:@selector(updaterWillShowModalAlert:)]) {
[self.delegate updaterWillShowModalAlert:self];
}
}
- (void)standardUserDriverDidShowModalAlert
{
if ([self.updater.delegate respondsToSelector:@selector(updaterDidShowModalAlert:)]) {
if ([self.delegate respondsToSelector:@selector(updaterDidShowModalAlert:)]) {
[self.delegate updaterDidShowModalAlert:self];
}
}
@@ -246,7 +246,7 @@ static NSMutableDictionary *sharedUpdaters = nil;
- (_Nullable id <SUVersionDisplay>)standardUserDriverRequestsVersionDisplayer
{
id <SUVersionDisplay> versionDisplayer = nil;
if ([self.updater.delegate respondsToSelector:@selector(versionDisplayerForUpdater:)]) {
if ([self.delegate respondsToSelector:@selector(versionDisplayerForUpdater:)]) {
versionDisplayer = [self.delegate versionDisplayerForUpdater:self];
}
return versionDisplayer;