From 5c0ee2d74a20bbcd82c409eae8dc5880a278c530 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 24 Jul 2016 13:29:03 -0400 Subject: [PATCH] Rename did finish downloaading callbacks to did start extracting --- Sparkle/SUCoreBasedUpdateDriver.h | 2 +- Sparkle/SUCoreBasedUpdateDriver.m | 4 ++-- Sparkle/SUStandardUserDriver.m | 2 +- Sparkle/SUUIBasedUpdateDriver.m | 4 ++-- Sparkle/SUUserDriver.h | 6 +++--- TestApplication/SUPopUpTitlebarUserDriver.m | 2 +- Tests/SUUpdaterTest.m | 2 +- sparkle-cli/SUCommandLineUserDriver.m | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Sparkle/SUCoreBasedUpdateDriver.h b/Sparkle/SUCoreBasedUpdateDriver.h index e8289c86..bf4d7e0a 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.h +++ b/Sparkle/SUCoreBasedUpdateDriver.h @@ -35,7 +35,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)downloadDriverDidReceiveDataOfLength:(NSUInteger)length; -- (void)coreDriverDidFinishDownloadingUpdate; +- (void)coreDriverDidStartExtractingUpdate; - (void)installerDidStartInstalling; diff --git a/Sparkle/SUCoreBasedUpdateDriver.m b/Sparkle/SUCoreBasedUpdateDriver.m index 5d44d602..04f4d9f7 100644 --- a/Sparkle/SUCoreBasedUpdateDriver.m +++ b/Sparkle/SUCoreBasedUpdateDriver.m @@ -170,8 +170,8 @@ - (void)extractUpdate:(SUDownloadedUpdate *)downloadedUpdate { // Now we have to extract the downloaded archive. - if ([self.delegate respondsToSelector:@selector(coreDriverDidFinishDownloadingUpdate)]) { - [self.delegate coreDriverDidFinishDownloadingUpdate]; + if ([self.delegate respondsToSelector:@selector(coreDriverDidStartExtractingUpdate)]) { + [self.delegate coreDriverDidStartExtractingUpdate]; } [self.installerDriver extractDownloadedUpdate:downloadedUpdate silently:self.silentInstall completion:^(NSError * _Nullable error) { diff --git a/Sparkle/SUStandardUserDriver.m b/Sparkle/SUStandardUserDriver.m index be0741e4..2803a400 100644 --- a/Sparkle/SUStandardUserDriver.m +++ b/Sparkle/SUStandardUserDriver.m @@ -366,7 +366,7 @@ }); } -- (void)showDownloadFinishedAndStartedExtractingUpdate +- (void)showDownloadDidStartExtractingUpdate { dispatch_async(dispatch_get_main_queue(), ^{ [self.coreComponent completeDownloadStatus]; diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index 4c092e28..3fb9c111 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -160,9 +160,9 @@ [self.userDriver showDownloadDidReceiveDataOfLength:length]; } -- (void)coreDriverDidFinishDownloadingUpdate +- (void)coreDriverDidStartExtractingUpdate { - [self.userDriver showDownloadFinishedAndStartedExtractingUpdate]; + [self.userDriver showDownloadDidStartExtractingUpdate]; } - (void)installerDidStartInstalling diff --git a/Sparkle/SUUserDriver.h b/Sparkle/SUUserDriver.h index 3e68fdd3..3a6f9aa7 100644 --- a/Sparkle/SUUserDriver.h +++ b/Sparkle/SUUserDriver.h @@ -200,9 +200,9 @@ NS_ASSUME_NONNULL_BEGIN * Let the user know that downloading the new update started. * * @param downloadUpdateStatusCompletion A reply of SUDownloadUpdateCancelled can be used to cancel - * the download at any point before -showDownloadFinishedAndStartedExtractingUpdate is invoked. + * the download at any point before -showDownloadDidStartExtractingUpdate is invoked. * A reply of SUDownloadUpdateDone signifies that the download is done, which should not be invoked until - * -showDownloadFinishedAndStartedExtractingUpdate + * -showDownloadDidStartExtractingUpdate * * This can be called from any thread */ @@ -235,7 +235,7 @@ NS_ASSUME_NONNULL_BEGIN * * This can be called from any thread */ -- (void)showDownloadFinishedAndStartedExtractingUpdate; +- (void)showDownloadDidStartExtractingUpdate; /*! * Show the user that the update is extracting with progress diff --git a/TestApplication/SUPopUpTitlebarUserDriver.m b/TestApplication/SUPopUpTitlebarUserDriver.m index 4f5d345c..9b410000 100644 --- a/TestApplication/SUPopUpTitlebarUserDriver.m +++ b/TestApplication/SUPopUpTitlebarUserDriver.m @@ -304,7 +304,7 @@ }); } -- (void)showDownloadFinishedAndStartedExtractingUpdate +- (void)showDownloadDidStartExtractingUpdate { dispatch_async(dispatch_get_main_queue(), ^{ [self.coreComponent completeDownloadStatus]; diff --git a/Tests/SUUpdaterTest.m b/Tests/SUUpdaterTest.m index 2927701f..00b2ede4 100644 --- a/Tests/SUUpdaterTest.m +++ b/Tests/SUUpdaterTest.m @@ -51,7 +51,7 @@ - (void)showDownloadDidReceiveDataOfLength:(NSUInteger)__unused length {} -- (void)showDownloadFinishedAndStartedExtractingUpdate {} +- (void)showDownloadDidStartExtractingUpdate {} - (void)showExtractionReceivedProgress:(double)__unused progress {} diff --git a/sparkle-cli/SUCommandLineUserDriver.m b/sparkle-cli/SUCommandLineUserDriver.m index b1892560..129f9b95 100644 --- a/sparkle-cli/SUCommandLineUserDriver.m +++ b/sparkle-cli/SUCommandLineUserDriver.m @@ -234,7 +234,7 @@ }); } -- (void)showDownloadFinishedAndStartedExtractingUpdate +- (void)showDownloadDidStartExtractingUpdate { dispatch_async(dispatch_get_main_queue(), ^{ [self.coreComponent completeDownloadStatus];