diff --git a/Sparkle/SUAutomaticUpdateDriver.h b/Sparkle/SUAutomaticUpdateDriver.h index 4dd90e8f..7ff9dbf0 100644 --- a/Sparkle/SUAutomaticUpdateDriver.h +++ b/Sparkle/SUAutomaticUpdateDriver.h @@ -9,7 +9,7 @@ #ifndef SUAUTOMATICUPDATEDRIVER_H #define SUAUTOMATICUPDATEDRIVER_H -#import +#import #import "SUBasicUpdateDriver.h" #import "SUAutomaticUpdateAlert.h" diff --git a/Sparkle/SUBasicUpdateDriver.h b/Sparkle/SUBasicUpdateDriver.h index deae8476..b5f62551 100644 --- a/Sparkle/SUBasicUpdateDriver.h +++ b/Sparkle/SUBasicUpdateDriver.h @@ -9,7 +9,7 @@ #ifndef SUBASICUPDATEDRIVER_H #define SUBASICUPDATEDRIVER_H -#import +#import #import "SUUpdateDriver.h" #import "SUUnarchiver.h" #import "SUAppcast.h" diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index c3b2942f..f5b911bd 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -8,6 +8,8 @@ #import "SUBasicUpdateDriver.h" +#import // Needed by NSWorkspace and NSRunningApplication unfortunately + #import "SUHost.h" #import "SUOperatingSystem.h" #import "SUDSAVerifier.h" diff --git a/Sparkle/SUBinaryDeltaUnarchiver.h b/Sparkle/SUBinaryDeltaUnarchiver.h index 1e71cbe4..4c770e5a 100644 --- a/Sparkle/SUBinaryDeltaUnarchiver.h +++ b/Sparkle/SUBinaryDeltaUnarchiver.h @@ -9,7 +9,7 @@ #ifndef SUBINARYDELTAUNARCHIVER_H #define SUBINARYDELTAUNARCHIVER_H -#import +#import #import "SUUnarchiver.h" @interface SUBinaryDeltaUnarchiver : SUUnarchiver diff --git a/Sparkle/SUDiskImageUnarchiver.h b/Sparkle/SUDiskImageUnarchiver.h index 7a8e9167..93e1da5b 100644 --- a/Sparkle/SUDiskImageUnarchiver.h +++ b/Sparkle/SUDiskImageUnarchiver.h @@ -9,7 +9,7 @@ #ifndef SUDISKIMAGEUNARCHIVER_H #define SUDISKIMAGEUNARCHIVER_H -#import +#import #import "SUUnarchiver.h" @interface SUDiskImageUnarchiver : SUUnarchiver diff --git a/Sparkle/SUInstaller.h b/Sparkle/SUInstaller.h index 4afe1cbe..d5a772c0 100644 --- a/Sparkle/SUInstaller.h +++ b/Sparkle/SUInstaller.h @@ -9,7 +9,7 @@ #ifndef SUINSTALLER_H #define SUINSTALLER_H -#import +#import #import "SUVersionComparisonProtocol.h" @class SUHost; diff --git a/Sparkle/SUPackageInstaller.m b/Sparkle/SUPackageInstaller.m index 3b26667a..89467fd1 100644 --- a/Sparkle/SUPackageInstaller.m +++ b/Sparkle/SUPackageInstaller.m @@ -7,7 +7,6 @@ // #import "SUPackageInstaller.h" -#import #import "SUConstants.h" #import "SUErrors.h" diff --git a/Sparkle/SUPipedUnarchiver.h b/Sparkle/SUPipedUnarchiver.h index 7304ba0a..c4c9536d 100644 --- a/Sparkle/SUPipedUnarchiver.h +++ b/Sparkle/SUPipedUnarchiver.h @@ -9,7 +9,7 @@ #ifndef SUPIPEDUNARCHIVER_H #define SUPIPEDUNARCHIVER_H -#import +#import #import "SUUnarchiver.h" @interface SUPipedUnarchiver : SUUnarchiver diff --git a/Sparkle/SUProbingUpdateDriver.h b/Sparkle/SUProbingUpdateDriver.h index bf897c8c..3f2860bf 100644 --- a/Sparkle/SUProbingUpdateDriver.h +++ b/Sparkle/SUProbingUpdateDriver.h @@ -9,7 +9,7 @@ #ifndef SUPROBINGUPDATEDRIVER_H #define SUPROBINGUPDATEDRIVER_H -#import +#import #import "SUBasicUpdateDriver.h" // This replaces the old SUStatusChecker. diff --git a/Sparkle/SUScheduledUpdateDriver.h b/Sparkle/SUScheduledUpdateDriver.h index dfdde51f..1290d139 100644 --- a/Sparkle/SUScheduledUpdateDriver.h +++ b/Sparkle/SUScheduledUpdateDriver.h @@ -9,7 +9,7 @@ #ifndef SUSCHEDULEDUPDATEDRIVER_H #define SUSCHEDULEDUPDATEDRIVER_H -#import +#import #import "SUUIBasedUpdateDriver.h" @interface SUScheduledUpdateDriver : SUUIBasedUpdateDriver diff --git a/Sparkle/SUSparkleUserUpdaterDriver.h b/Sparkle/SUSparkleUserUpdaterDriver.h index c217c191..66d08c71 100644 --- a/Sparkle/SUSparkleUserUpdaterDriver.h +++ b/Sparkle/SUSparkleUserUpdaterDriver.h @@ -6,7 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#import #import "SUUserUpdaterDriver.h" @class SUHost; @@ -15,4 +15,6 @@ - (instancetype)initWithHost:(SUHost *)host handlesTermination:(BOOL)handlesTermination delegate:(id )delegate; +- (NSApplicationTerminateReply)sendApplicationTerminationSignal; + @end diff --git a/Sparkle/SUSystemProfiler.m b/Sparkle/SUSystemProfiler.m index a4e6d220..febb6f08 100644 --- a/Sparkle/SUSystemProfiler.m +++ b/Sparkle/SUSystemProfiler.m @@ -7,7 +7,6 @@ // Adapted from Sparkle+, by Tom Harrington. // -#import #import "SUSystemProfiler.h" #import "SUHost.h" diff --git a/Sparkle/SUUIBasedUpdateDriver.h b/Sparkle/SUUIBasedUpdateDriver.h index e128c89d..fc376d25 100644 --- a/Sparkle/SUUIBasedUpdateDriver.h +++ b/Sparkle/SUUIBasedUpdateDriver.h @@ -9,7 +9,7 @@ #ifndef SUUIBASEDUPDATEDRIVER_H #define SUUIBASEDUPDATEDRIVER_H -#import +#import #import "SUBasicUpdateDriver.h" #import "SUUpdateAlert.h" diff --git a/Sparkle/SUUnarchiver_Private.h b/Sparkle/SUUnarchiver_Private.h index c29d68cf..2a6b0ed6 100644 --- a/Sparkle/SUUnarchiver_Private.h +++ b/Sparkle/SUUnarchiver_Private.h @@ -9,7 +9,7 @@ #ifndef SUUNARCHIVER_PRIVATE_H #define SUUNARCHIVER_PRIVATE_H -#import +#import #import "SUUnarchiver.h" @interface SUUnarchiver (Private) diff --git a/Sparkle/SUUpdateDriver.h b/Sparkle/SUUpdateDriver.h index 2db89d9f..8373f4a0 100644 --- a/Sparkle/SUUpdateDriver.h +++ b/Sparkle/SUUpdateDriver.h @@ -9,7 +9,7 @@ #ifndef SUUPDATEDRIVER_H #define SUUPDATEDRIVER_H -#import +#import extern NSString *const SUUpdateDriverFinishedNotification; diff --git a/Sparkle/SUUserInitiatedUpdateDriver.h b/Sparkle/SUUserInitiatedUpdateDriver.h index 079d2fea..bd07570b 100644 --- a/Sparkle/SUUserInitiatedUpdateDriver.h +++ b/Sparkle/SUUserInitiatedUpdateDriver.h @@ -9,7 +9,7 @@ #ifndef SUUSERINITIATEDUPDATEDRIVER_H #define SUUSERINITIATEDUPDATEDRIVER_H -#import +#import #import "SUUIBasedUpdateDriver.h" @interface SUUserInitiatedUpdateDriver : SUUIBasedUpdateDriver diff --git a/Sparkle/SUUserUpdaterDriver.h b/Sparkle/SUUserUpdaterDriver.h index c59948dd..79091dca 100644 --- a/Sparkle/SUUserUpdaterDriver.h +++ b/Sparkle/SUUserUpdaterDriver.h @@ -6,7 +6,7 @@ // Copyright © 2016 Sparkle Project. All rights reserved. // -#import +#import #import "SUUpdateAlertChoice.h" #import "SUAutomaticInstallationChoice.h" @@ -81,7 +81,6 @@ typedef NS_ENUM(NSUInteger, SUInstallUpdateStatus) { - (void)showInstallingUpdate; -- (NSApplicationTerminateReply)sendApplicationTerminationSignal; - (void)registerApplicationTermination:(void (^)(SUApplicationTerminationStatus))applicationTerminationHandler; - (void)unregisterApplicationTermination; - (void)terminateApplication; diff --git a/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h index 10c42669..586d20a5 100644 --- a/Sparkle/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -9,7 +9,7 @@ #ifndef SUVERSIONCOMPARISONPROTOCOL_H #define SUVERSIONCOMPARISONPROTOCOL_H -#import +#import #import "SUExport.h" /*! diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h index 97fae4c9..f46bebf7 100644 --- a/Sparkle/SUVersionDisplayProtocol.h +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -6,7 +6,7 @@ // Copyright 2009 Elgato Systems GmbH. All rights reserved. // -#import +#import #import "SUExport.h" /*! diff --git a/Sparkle/Sparkle.h b/Sparkle/Sparkle.h index 67f17c49..2e6f95b2 100644 --- a/Sparkle/Sparkle.h +++ b/Sparkle/Sparkle.h @@ -9,8 +9,6 @@ #ifndef SPARKLE_H #define SPARKLE_H -#import - // This list should include the shared headers. It doesn't matter if some of them aren't shared (unless // there are name-space collisions) so we can list all of them to start with: