diff --git a/NSBundle+SUAdditions.h b/NSBundle+SUAdditions.h index 38fc9238..ed2475c4 100644 --- a/NSBundle+SUAdditions.h +++ b/NSBundle+SUAdditions.h @@ -9,6 +9,8 @@ #ifndef NSBUNDLE_PLUS_ADDITIONS_H #define NSBUNDLE_PLUS_ADDITIONS_H +#import + @interface NSBundle (SUAdditions) /*! @method diff --git a/NSBundle+SUAdditions.m b/NSBundle+SUAdditions.m index 948e5d55..983d0f5c 100644 --- a/NSBundle+SUAdditions.m +++ b/NSBundle+SUAdditions.m @@ -9,6 +9,10 @@ #import "Sparkle.h" #import "NSBundle+SUAdditions.h" +#ifndef NSAppKitVersionNumber10_4 +#define NSAppKitVersionNumber10_4 824 +#endif + @implementation NSBundle (SUAdditions) - (NSString *)name diff --git a/NSFileManager+Authentication.m b/NSFileManager+Authentication.m index b81cfea4..a0c922e5 100644 --- a/NSFileManager+Authentication.m +++ b/NSFileManager+Authentication.m @@ -82,7 +82,8 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza if ((bundle = [NSBundle bundleWithPath:path])) { // We'll clean it up a little for safety. - NSMutableCharacterSet *validCharacters = [NSMutableCharacterSet alphanumericCharacterSet]; + // The cast is necessary because of a bug in the headers in pre-10.5 SDKs + NSMutableCharacterSet *validCharacters = (id)[NSMutableCharacterSet alphanumericCharacterSet]; [validCharacters formUnionWithCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@".-()"]]; postFix = [[bundle objectForInfoDictionaryKey:@"CFBundleVersion"] stringByTrimmingCharactersInSet:[validCharacters invertedSet]]; } diff --git a/Test Application/Test Application-Info.plist b/Test Application/Test Application-Info.plist index 01722c41..4845751e 100644 --- a/Test Application/Test Application-Info.plist +++ b/Test Application/Test Application-Info.plist @@ -1,5 +1,5 @@ - + CFBundleDevelopmentRegion @@ -25,7 +25,7 @@ NSPrincipalClass NSApplication SUFeedURL - http://www.andymatuschak.org/files/sparkletestcast.xml + http://www.andymatuschfsfjak.org/files/sparkletestcast.xml SUEnableSystemProfiling diff --git a/relaunch.m b/relaunch.m index ce90ad99..b38d555e 100644 --- a/relaunch.m +++ b/relaunch.m @@ -1,6 +1,8 @@ #import +#include + @interface TerminationListener : NSObject { const char *executablePath;