From 181f813b018ef0e2b870a02ff501174e339e5059 Mon Sep 17 00:00:00 2001 From: Leo Natan Date: Tue, 20 Aug 2019 04:12:33 +0300 Subject: [PATCH] Fix incorrect and inconsistent selectors and delegate methods. --- Sparkle/SUUIBasedUpdateDriver.m | 2 +- Sparkle/SUUpdaterDelegate.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m index c03f8dd8..d2d0cbe1 100644 --- a/Sparkle/SUUIBasedUpdateDriver.m +++ b/Sparkle/SUUIBasedUpdateDriver.m @@ -179,7 +179,7 @@ break; case SUSkipThisVersionChoice: - if ([[updater delegate] respondsToSelector:@selector(userDidSkipThisVersion:)]) { + if ([[updater delegate] respondsToSelector:@selector(updater:userDidSkipThisVersion:)]) { [[updater delegate] updater:self.updater userDidSkipThisVersion:self.updateItem]; } [self didDismissAlertPermanently:YES forItem:item]; diff --git a/Sparkle/SUUpdaterDelegate.h b/Sparkle/SUUpdaterDelegate.h index d211a9f1..ea8197b5 100644 --- a/Sparkle/SUUpdaterDelegate.h +++ b/Sparkle/SUUpdaterDelegate.h @@ -146,7 +146,7 @@ SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; \param updater The SUUpdater instance. */ -- (void)userDidSkipThisVersion:(SUUpdater *)updater; +- (void)updater:(SUUpdater *)updater userDidSkipThisVersion:(SUAppcastItem *)item; /*! Called immediately before downloading the specified update.