Commits

vspader  committed fa68e1f

Moved project to 10.5 SDK. Fixed warnings.

  • Participants
  • Parent commits 9e8466c

Comments (0)

Files changed (6)

File Frameworks/Sparkle/NSFileManager+Verification.m

 	for (di = 0; di < 16; di++)
 	    sprintf(hexDigest + di*2, "%02x", digest[di]);
 	
-	return [hash isEqualToString:[NSString stringWithCString:hexDigest]];
+	return [hash isEqualToString:[NSString stringWithUTF8String:hexDigest]];
 }
 
 - (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature

File Frameworks/Sparkle/SUAppcast.h

 @end
 
 @interface NSObject (SUAppcastDelegate)
-- appcastDidFinishLoading:(SUAppcast *)appcast;
+- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
 @end

File Frameworks/Sparkle/SUStatusChecker.m

 	}
 	@catch (NSException *e)
 	{
-		NSLog([e reason]);
+		NSLog(@"%@", [e reason]);
 
 		[scDelegate statusChecker:self foundVersion:nil isNewVersion:NO];	
 	}

File Frameworks/Sparkle/SUUnarchiver.m

 	if ((fp = fopen([archivePath UTF8String], "r")))
 	{
 		setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] UTF8String], 1);
-		if ((cmdFP = popen([command cString], "w")))
+		if ((cmdFP = popen([command UTF8String], "w")))
 		{
 			char buf[32*1024];
 			long len;

File Frameworks/Sparkle/SUUpdater.m

 	}
 	@catch (NSException *e)
 	{
-		NSLog([e reason]);
+		NSLog(@"%@", [e reason]);
 		updateInProgress = NO;
 		if (verbose)
 			[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil)];
 		[unarchiver unarchivePath:downloadPath]; // asynchronous extraction!
 	}
 	@catch(NSException *e) {
-		NSLog([e reason]);
+		NSLog(@"%@", [e reason]);
 		[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil)];
 		[self abandonUpdate];
 	}	
 	}
 	@catch(NSException *e) 
 	{
-		NSLog([e reason]);
+		NSLog(@"%@", [e reason]);
 		[self showUpdateErrorAlertWithInfo:SULocalizedString(@"An error occurred during installation. Please try again later.", nil)];
 		[self abandonUpdate];		
 	}

File Frameworks/Sparkle/Sparkle.xcodeproj/project.pbxproj

 				GCC_WARN_UNUSED_VARIABLE = YES;
 				MACOSX_DEPLOYMENT_TARGET = 10.4;
 				PREBINDING = NO;
-				SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+				SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
 				SYMROOT = ../../build;
 				WARNING_CFLAGS = "-wall";
 			};
 				GCC_WARN_UNUSED_VARIABLE = YES;
 				MACOSX_DEPLOYMENT_TARGET = 10.4;
 				PREBINDING = NO;
-				SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+				SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;
 				SYMROOT = ../../build;
 				WARNING_CFLAGS = "-wall";
 			};