diff --git a/.bzrignore b/.bzrignore deleted file mode 100644 index 261594a4..00000000 --- a/.bzrignore +++ /dev/null @@ -1,4 +0,0 @@ -*.pbxuser -.DS_Store -*.perspective* -.svn diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 7319e5b2..797b4b1c 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -14,6 +14,7 @@ GCC_DEBUGGING_SYMBOLS = full GCC_PRECOMPILE_PREFIX_HEADER = YES GCC_PREFIX_HEADER = $(SDKROOT)/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h GCC_FAST_OBJC_DISPATCH = YES +ARCHS = ppc i386 x86_64 // Enable warnings GCC_WARN_CHECK_SWITCH_STATEMENTS = YES diff --git a/Configurations/ConfigCommonDebug.xcconfig b/Configurations/ConfigCommonDebug.xcconfig index 718bd9fb..fdf006d6 100644 --- a/Configurations/ConfigCommonDebug.xcconfig +++ b/Configurations/ConfigCommonDebug.xcconfig @@ -4,5 +4,4 @@ GCC_OPTIMIZATION_LEVEL = 0 DEBUG_INFORMATION_FORMAT = dwarf GCC_GENERATE_DEBUGGING_SYMBOLS = YES SPARKLE_EXTRA_DEBUG = -DDEBUG -fstack-protector -D_FORTIFY_SOURCE=2 -OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG) -ARCHS = $(NATIVE_ARCH_ACTUAL) +OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG) \ No newline at end of file diff --git a/Configurations/ConfigCommonRelease.xcconfig b/Configurations/ConfigCommonRelease.xcconfig index 92c9f2d5..19e09866 100644 --- a/Configurations/ConfigCommonRelease.xcconfig +++ b/Configurations/ConfigCommonRelease.xcconfig @@ -6,4 +6,3 @@ GCC_GENERATE_DEBUGGING_SYMBOLS = NO DEAD_CODE_STRIPPING = YES GCC_TREAT_WARNINGS_AS_ERRORS = YES GCC_WARN_UNINITIALIZED_AUTOS = YES -ARCHS = ppc i386 x86_64 diff --git a/Configurations/ConfigTestAppReleaseGCSupport.xcconfig b/Configurations/ConfigTestAppReleaseGCSupport.xcconfig new file mode 100644 index 00000000..0ac40c55 --- /dev/null +++ b/Configurations/ConfigTestAppReleaseGCSupport.xcconfig @@ -0,0 +1,3 @@ +#include "ConfigTestAppRelease.xcconfig" + +GCC_ENABLE_OBJC_GC = required \ No newline at end of file diff --git a/Info.plist b/Info.plist index 8eb6cc32..56b417a0 100644 --- a/Info.plist +++ b/Info.plist @@ -21,7 +21,7 @@ CFBundleVersion 1.5 CFBundleShortVersionString - 1.5 Beta (bzr) + 1.5 Beta (git) NSPrincipalClass diff --git a/README.markdown b/README.markdown new file mode 100644 index 00000000..02014809 --- /dev/null +++ b/README.markdown @@ -0,0 +1,40 @@ +# Sparkle +is an easy-to-use software update framework for Cocoa developers. + +* True self-updating--no work required from the user. + +* Displays release notes to the user via WebKit. + +* Displays a detailed progress window to the user. + +* Supports authentication for installing in secure locations. + +* Really, really easy to install. + +* Uses appcasts for release information. + +* The user can choose to automatically download and install all updates. + +* Seamless integration—there's no mention of Sparkle; your icons and app name are used. + +* Supports DSA signatures for ultra-secure updates. + +* Sparkle requires no code in your app, so it's trivial to upgrade or remove the module. + +## New in Sparkle 1.5: + +* Optionally sends user demographic information to the server when checking for updates. + +* Dual-mode garbage collection support for any memory management style. + +* Sparkle doesn't bug the user until second launch for better first impressions. + +* Sparkle can install .pkg files for more complicated products. + +* Supports bundles, preference panes, plugins, and other non-.app software. + +* Supports branches due to minimum OS version requirements. + +* Deep delegate support to make Sparkle work exactly as you need. + +* Tons of other stuff! [Read more about what's new.](http://andymatuschak.org/articles/2008/05/31/sparkle-15b1-now-available/ "Sparkle 1.5b1: now available!") \ No newline at end of file diff --git a/SUAppcast.m b/SUAppcast.m index 8f25307f..517ba9b6 100644 --- a/SUAppcast.m +++ b/SUAppcast.m @@ -76,8 +76,11 @@ BOOL failed = NO; NSArray *xmlItems = nil; NSMutableArray *appcastItems = [NSMutableArray array]; - +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 [[NSFileManager defaultManager] removeFileAtPath:downloadFilename handler:nil]; +#else + [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:NULL]; +#endif [downloadFilename release]; downloadFilename = nil; @@ -199,8 +202,11 @@ - (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error { CFRelease(download); - +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 [[NSFileManager defaultManager] removeFileAtPath:downloadFilename handler:nil]; +#else + [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:NULL]; +#endif [downloadFilename release]; downloadFilename = nil; diff --git a/SUAutomaticUpdateAlert.m b/SUAutomaticUpdateAlert.m index b4e3fc8c..d30025f1 100644 --- a/SUAutomaticUpdateAlert.m +++ b/SUAutomaticUpdateAlert.m @@ -65,7 +65,7 @@ - (NSString *)descriptionText { - return [NSString stringWithFormat:SULocalizedString(@"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?", nil), [host name], [host displayVersion]]; + return [NSString stringWithFormat:SULocalizedString(@"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?", nil), [host name], [updateItem displayVersionString]]; } @end diff --git a/SUBasicUpdateDriver.m b/SUBasicUpdateDriver.m index 43026008..75a07e9a 100644 --- a/SUBasicUpdateDriver.m +++ b/SUBasicUpdateDriver.m @@ -144,13 +144,20 @@ name = [name stringByDeletingPathExtension]; // We create a temporary directory in /tmp and stick the file there. - // Not using a GUID here because hdiutil for some reason chokes on GUIDs. Too long? I really have no idea. + // Not using a GUID here because hdiutil (for DMGs) for some reason chokes on GUIDs. Too long? I really have no idea. NSString *prefix = [NSString stringWithFormat:@"%@ %@ Update", [host name], [host version]]; NSString *tempDir = [NSTemporaryDirectory() stringByAppendingPathComponent:prefix]; int cnt=1; while ([[NSFileManager defaultManager] fileExistsAtPath:tempDir] && cnt <= 999) + { tempDir = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@ %d", prefix, cnt++]]; + } + +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 BOOL success = [[NSFileManager defaultManager] createDirectoryAtPath:tempDir attributes:nil]; +#else + BOOL success = [[NSFileManager defaultManager] createDirectoryAtPath:tempDir withIntermediateDirectories:YES attributes:nil error:NULL]; +#endif if (!success) { // Okay, something's really broken with /tmp @@ -166,11 +173,12 @@ { // New in Sparkle 1.5: we're now checking signatures on all non-secure downloads, where "secure" is defined as both the appcast and the download being transmitted over SSL. NSURL *downloadURL = [[d request] URL]; - if (!([[downloadURL scheme] isEqualToString:@"https"] && [[appcastURL scheme] isEqualToString:@"https"]) || !([downloadURL isFileURL] && [appcastURL isFileURL]) || [host publicDSAKey]) + if (!(([[downloadURL scheme] isEqualToString:@"https"] && [[appcastURL scheme] isEqualToString:@"https"]) || + ([downloadURL isFileURL] && [appcastURL isFileURL]))) { - if (![SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:[updateItem DSASignature] withPublicDSAKey:[host publicDSAKey]]) + if (![host publicDSAKey] || ![SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:[updateItem DSASignature] withPublicDSAKey:[host publicDSAKey]]) { - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSignatureError userInfo:[NSDictionary dictionaryWithObject:@"The update is improperly signed." forKey:NSLocalizedDescriptionKey]]]; + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSignatureError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil), NSLocalizedDescriptionKey, @"The update is improperly signed.", NSLocalizedFailureReasonErrorKey, nil]]]; return; } } @@ -244,10 +252,18 @@ // Copy the relauncher into a temporary directory so we can get to it after the new version's installed. NSString *relaunchPathToCopy = [[NSBundle bundleForClass:[self class]] pathForResource:@"relaunch" ofType:@""]; NSString *targetPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[relaunchPathToCopy lastPathComponent]]; - // Only the paranoid survive: if there's already a stray copy of relaunch there, we would have problems - [[NSFileManager defaultManager] removeFileAtPath:targetPath handler:nil]; + // Only the paranoid survive: if there's already a stray copy of relaunch there, we would have problems. + NSError *error = nil; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + [[NSFileManager defaultManager] removeFileAtPath:targetPath handler:nil]; if ([[NSFileManager defaultManager] copyPath:relaunchPathToCopy toPath:targetPath handler:nil]) +#else + [[NSFileManager defaultManager] removeItemAtPath:targetPath error:NULL]; + if ([[NSFileManager defaultManager] copyItemAtPath:relaunchPathToCopy toPath:targetPath error:&error]) +#endif relaunchPath = [targetPath retain]; + else + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil), NSLocalizedDescriptionKey, [NSString stringWithFormat:@"Couldn't copy relauncher (%@) to temporary path (%@)! %@", relaunchPathToCopy, targetPath, (error ? [error localizedDescription] : @"")], NSLocalizedFailureReasonErrorKey, nil]]]; [SUInstaller installFromUpdateFolder:[downloadPath stringByDeletingLastPathComponent] overHost:host delegate:self synchronously:[self shouldInstallSynchronously] versionComparator:[self _versionComparator]]; } @@ -296,13 +312,16 @@ - (void)cleanUp { - [[NSFileManager defaultManager] removeFileAtPath:[downloadPath stringByDeletingLastPathComponent] handler:nil]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + [[NSFileManager defaultManager] removeFileAtPath:[downloadPath stringByDeletingLastPathComponent] handler:nil]; +#else + [[NSFileManager defaultManager] removeItemAtPath:[downloadPath stringByDeletingLastPathComponent] error:NULL]; +#endif } - (void)installerForHost:(SUHost *)aHost failedWithError:(NSError *)error { if (aHost != host) { return; } - [[NSFileManager defaultManager] removeFileAtPath:relaunchPath handler:NULL]; // Clean up the copied relauncher. [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:SULocalizedString(@"An error occurred while installing the update. Please try again later.", nil), NSLocalizedDescriptionKey, [error localizedDescription], NSLocalizedFailureReasonErrorKey, nil]]]; } diff --git a/SUDiskImageUnarchiver.m b/SUDiskImageUnarchiver.m index 65ba8921..8ebb9838 100644 --- a/SUDiskImageUnarchiver.m +++ b/SUDiskImageUnarchiver.m @@ -33,7 +33,11 @@ if ([[NSFileManager defaultManager] fileExistsAtPath:mountPoint]) goto reportError; // create mount point folder - [[NSFileManager defaultManager] createDirectoryAtPath:mountPoint attributes:nil]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + [[NSFileManager defaultManager] createDirectoryAtPath:mountPoint attributes:nil]; +#else + [[NSFileManager defaultManager] createDirectoryAtPath:mountPoint withIntermediateDirectories:YES attributes:nil error:NULL]; +#endif if (![[NSFileManager defaultManager] fileExistsAtPath:mountPoint]) goto reportError; NSArray* arguments = [NSArray arrayWithObjects:@"attach", archivePath, @"-mountpoint", mountPoint, @"-noverify", @"-nobrowse", @"-noautoopen", nil]; @@ -47,16 +51,29 @@ // Now that we've mounted it, we need to copy out its contents. NSString *targetPath = [[archivePath stringByDeletingLastPathComponent] stringByAppendingPathComponent:[mountPoint lastPathComponent]]; - if (![[NSFileManager defaultManager] createDirectoryAtPath:targetPath attributes:nil]) goto reportError; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + if (![[NSFileManager defaultManager] createDirectoryAtPath:targetPath attributes:nil]) goto reportError; +#else + if (![[NSFileManager defaultManager] createDirectoryAtPath:targetPath withIntermediateDirectories:YES attributes:nil error:NULL]) goto reportError; +#endif // We can't just copyPath: from the volume root because that always fails. Seems to be a bug. - id subpathEnumerator = [[[NSFileManager defaultManager] directoryContentsAtPath:mountPoint] objectEnumerator], currentSubpath; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + id subpathEnumerator = [[[NSFileManager defaultManager] directoryContentsAtPath:mountPoint] objectEnumerator]; +#else + id subpathEnumerator = [[[NSFileManager defaultManager] contentsOfDirectoryAtPath:mountPoint error:NULL] objectEnumerator]; +#endif + NSString *currentSubpath; while ((currentSubpath = [subpathEnumerator nextObject])) { NSString *currentFullPath = [mountPoint stringByAppendingPathComponent:currentSubpath]; // Don't bother trying (and failing) to copy out files we can't read. That's not going to be the app anyway. if (![[NSFileManager defaultManager] isReadableFileAtPath:currentFullPath]) continue; - if (![[NSFileManager defaultManager] copyPath:currentFullPath toPath:[targetPath stringByAppendingPathComponent:currentSubpath] handler:nil]) +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + if (![[NSFileManager defaultManager] copyPath:currentFullPath toPath:[targetPath stringByAppendingPathComponent:currentSubpath] handler:nil]) +#else + if (![[NSFileManager defaultManager] copyItemAtPath:currentFullPath toPath:[targetPath stringByAppendingPathComponent:currentSubpath] error:NULL]) +#endif goto reportError; } @@ -70,7 +87,11 @@ finally: if (mountedSuccessfully) [NSTask launchedTaskWithLaunchPath:@"/usr/bin/hdiutil" arguments:[NSArray arrayWithObjects:@"detach", mountPoint, @"-force", nil]]; else - [[NSFileManager defaultManager] removeFileAtPath:mountPoint handler:nil]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + [[NSFileManager defaultManager] removeFileAtPath:mountPoint handler:nil]; +#else + [[NSFileManager defaultManager] removeItemAtPath:mountPoint error:NULL]; +#endif [pool drain]; } diff --git a/SUHost.m b/SUHost.m index 777fb863..76f59b7d 100644 --- a/SUHost.m +++ b/SUHost.m @@ -19,7 +19,7 @@ { bundle = [aBundle retain]; if (![bundle bundleIdentifier]) - NSLog(@"Sparkle Error: the bundle being updated at %@ has no CFBundleIdentifier! This will cause preference read/write to not work properly."); + NSLog(@"Sparkle Error: the bundle being updated at %@ has no CFBundleIdentifier! This will cause preference read/write to not work properly.", bundle); } return self; } diff --git a/SUInstaller.m b/SUInstaller.m index 37f246df..b35cdbac 100644 --- a/SUInstaller.m +++ b/SUInstaller.m @@ -9,7 +9,7 @@ #import "SUInstaller.h" #import "SUPlainInstaller.h" #import "SUPackageInstaller.h" -#import "SUHost.h" +#import "SUHost.h" @implementation SUInstaller diff --git a/SUPipedUnarchiver.m b/SUPipedUnarchiver.m index e3481ff9..ec5f5b00 100644 --- a/SUPipedUnarchiver.m +++ b/SUPipedUnarchiver.m @@ -48,7 +48,11 @@ FILE *fp = NULL, *cmdFP = NULL; // Get the file size. - NSNumber *fs = [[[NSFileManager defaultManager] fileAttributesAtPath:archivePath traverseLink:NO] objectForKey:NSFileSize]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + NSNumber *fs = [[[NSFileManager defaultManager] fileAttributesAtPath:archivePath traverseLink:NO] objectForKey:NSFileSize]; +#else + NSNumber *fs = [[[NSFileManager defaultManager] attributesOfItemAtPath:archivePath error:NULL] objectForKey:NSFileSize]; +#endif if (fs == nil) goto reportError; // Thank you, Allan Odgaard! @@ -58,17 +62,27 @@ setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] fileSystemRepresentation], 1); cmdFP = popen([command fileSystemRepresentation], "w"); + long written; if (!cmdFP) goto reportError; char buf[32*1024]; long len; while((len = fread(buf, 1, 32*1024, fp))) { - fwrite(buf, 1, len, cmdFP); + written = fwrite(buf, 1, len, cmdFP); + if( written < len ) + { + pclose(cmdFP); + goto reportError; + } + [self performSelectorOnMainThread:@selector(_notifyDelegateOfExtractedLength:) withObject:[NSNumber numberWithLong:len] waitUntilDone:NO]; } pclose(cmdFP); + if( ferror( fp ) ) + goto reportError; + [self performSelectorOnMainThread:@selector(_notifyDelegateOfSuccess) withObject:nil waitUntilDone:NO]; goto finally; diff --git a/SUPlainInstaller.h b/SUPlainInstaller.h index 61c83a76..54747283 100644 --- a/SUPlainInstaller.h +++ b/SUPlainInstaller.h @@ -13,6 +13,7 @@ #import "SUInstaller.h" #import "SUVersionComparisonProtocol.h" +@class SUHost; @interface SUPlainInstaller : SUInstaller { } + (void)performInstallationWithPath:(NSString *)path host:(SUHost *)host delegate:delegate synchronously:(BOOL)synchronously versionComparator:(id )comparator; @end diff --git a/SUPlainInstaller.m b/SUPlainInstaller.m index 459c55fa..9752eb3d 100644 --- a/SUPlainInstaller.m +++ b/SUPlainInstaller.m @@ -8,6 +8,7 @@ #import "SUPlainInstaller.h" #import "SUPlainInstallerInternals.h" +#import "SUHost.h" NSString *SUInstallerPathKey = @"SUInstallerPath"; NSString *SUInstallerHostKey = @"SUInstallerHost"; diff --git a/SUPlainInstallerInternals.m b/SUPlainInstallerInternals.m index 3e66e619..e20604b5 100644 --- a/SUPlainInstallerInternals.m +++ b/SUPlainInstallerInternals.m @@ -95,7 +95,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza return res; } -+ (NSString *)_temporaryCopyNameForPath:(NSString *)path ++ (NSString *)_temporaryInstallationPathForPath:(NSString *)path { // Let's try to read the version number so the filename will be more meaningful. NSString *postFix; @@ -121,7 +121,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza + (BOOL)_copyPathWithForcedAuthentication:(NSString *)src toPath:(NSString *)dst error:(NSError **)error { - NSString *tmp = [self _temporaryCopyNameForPath:dst]; + NSString *tmp = [self _temporaryInstallationPathForPath:dst]; const char* srcPath = [src fileSystemRepresentation]; const char* tmpPath = [tmp fileSystemRepresentation]; const char* dstPath = [dst fileSystemRepresentation]; @@ -233,15 +233,22 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza if (![[NSFileManager defaultManager] isWritableFileAtPath:dst] || ![[NSFileManager defaultManager] isWritableFileAtPath:[dst stringByDeletingLastPathComponent]]) return [self _copyPathWithForcedAuthentication:src toPath:dst error:error]; - NSString *tmpPath = [self _temporaryCopyNameForPath:dst]; - - if (![[NSFileManager defaultManager] movePath:dst toPath:tmpPath handler:self]) + NSString *tmpPath = [self _temporaryInstallationPathForPath:dst]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + if (![[NSFileManager defaultManager] movePath:dst toPath:tmpPath handler:nil]) +#else + if (![[NSFileManager defaultManager] moveItemAtPath:dst toPath:tmpPath error:NULL]) +#endif { if (error != NULL) *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUFileCopyFailure userInfo:[NSDictionary dictionaryWithObject:[NSString stringWithFormat:@"Couldn't move %@ to %@.", dst, tmpPath] forKey:NSLocalizedDescriptionKey]]; return NO; } - if (![[NSFileManager defaultManager] copyPath:src toPath:dst handler:self]) +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + if (![[NSFileManager defaultManager] copyPath:src toPath:dst handler:nil]) +#else + if (![[NSFileManager defaultManager] copyItemAtPath:src toPath:dst error:NULL]) +#endif { if (error != NULL) *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUFileCopyFailure userInfo:[NSDictionary dictionaryWithObject:[NSString stringWithFormat:@"Couldn't copy %@ to %@.", src, dst] forKey:NSLocalizedDescriptionKey]]; @@ -320,7 +327,11 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza // Only recurse if it's actually a directory. Don't recurse into a // root-level symbolic link. NSDictionary* rootAttributes = - [[NSFileManager defaultManager] fileAttributesAtPath:root traverseLink:NO]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + [[NSFileManager defaultManager] fileAttributesAtPath:root traverseLink:NO]; +#else + [[NSFileManager defaultManager] attributesOfItemAtPath:root error:NULL]; +#endif NSString* rootType = [rootAttributes objectForKey:NSFileType]; if (rootType == NSFileTypeDirectory) { diff --git a/SUStatus.nib/designable.nib b/SUStatus.nib/designable.nib new file mode 100644 index 00000000..4de5187b --- /dev/null +++ b/SUStatus.nib/designable.nib @@ -0,0 +1,1121 @@ + + + + 1050 + 10A432 + 732 + 1038 + 437.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 732 + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + + + + + SUStatusController + + + FirstResponder + + + NSApplication + + + 1 + 2 + {{200, 222}, {384, 107}} + 1886912512 + Set in Code + + NSWindow + + + View + + {1.79769e+308, 1.79769e+308} + {213, 107} + + + 256 + + + + 268 + + Apple PDF pasteboard type + Apple PICT pasteboard type + Apple PNG pasteboard type + NSFilenamesPboardType + NeXT Encapsulated PostScript v1.2 pasteboard type + NeXT TIFF v4.0 pasteboard type + + {{24, 28}, {64, 64}} + + YES + + 130560 + 33554432 + + NSImage + NSApplicationIcon + + 0 + 1 + 0 + NO + + YES + + + + 268 + {{106, 75}, {258, 17}} + + YES + + 67239424 + 272629760 + Status Text (set by loc. string in code) + + LucidaGrande-Bold + 13 + 2072 + + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + 3 + MAA + + + + + + + 1280 + + {{107, 47}, {256, 20}} + + 16394 + 100 + + + + 259 + {{257, 12}, {110, 32}} + + YES + + 67239424 + 134217728 + Button + + LucidaGrande + 13 + 1044 + + + -2038284033 + 1 + + + + + + 200 + 25 + + + + + 256 + {{106, 22}, {152, 17}} + + YES + + 67239424 + 272629760 + Small System Font Text + + + + + + + + {384, 107} + + + {{0, 0}, {1280, 778}} + {213, 129} + {1.79769e+308, 1.79769e+308} + + + + + + + value: applicationIcon + + + + + + value: applicationIcon + value + applicationIcon + 2 + + + 9 + + + + maxValue: maxProgressValue + + + + + + maxValue: maxProgressValue + maxValue + maxProgressValue + 2 + + + 13 + + + + value: statusText + + + + + + value: statusText + value + statusText + 2 + + + 17 + + + + title: buttonTitle + + + + + + title: buttonTitle + title + buttonTitle + 2 + + + 21 + + + + title: windowTitle + + + + + + title: windowTitle + title + windowTitle + 2 + + + 24 + + + + window + + + + 25 + + + + value: title + + + + + + value: title + value + title + 2 + + + 26 + + + + value: progressValue + + + + + + value: progressValue + value + progressValue + + 2 + + + 27 + + + + hidden: statusText + + + + + + hidden: statusText + hidden + statusText + + NSValueTransformerName + NSIsNil + + 2 + + + 33 + + + + actionButton + + + + 34 + + + + progressBar + + + + 49 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 5 + + + + + + Window + + + 6 + + + + + + + + + + + + 7 + + + + + + + + 8 + + + + + + + + 11 + + + + + 12 + + + + + + + + 16 + + + + + + + + 45 + + + + + 46 + + + + + 47 + + + + + 48 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + {{0, 738}, {384, 107}} + com.apple.InterfaceBuilder.CocoaPlugin + {{0, 738}, {384, 107}} + + + {213, 107} + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + + 50 + + + + + FirstResponder + + IBUserSource + + + + + NSApplication + NSResponder + + IBUserSource + + + + + NSObject + + IBProjectSource + SUAppcast.h + + + + NSObject + + IBProjectSource + SUAutomaticUpdateAlert.h + + + + NSObject + + IBProjectSource + SUInstaller.h + + + + NSObject + + IBProjectSource + SUUnarchiver.h + + + + NSObject + + IBProjectSource + SUUpdateAlert.h + + + + NSObject + + IBProjectSource + SUUpdatePermissionPrompt.h + + + + NSObject + + IBProjectSource + SUUpdater.h + + + + NSObject + + IBUserSource + + + + + SUStatusController + SUWindowController + + NSButton + NSProgressIndicator + + + IBProjectSource + SUStatusController.h + + + + SUStatusController + SUWindowController + + IBUserSource + + + + + SUWindowController + NSWindowController + + IBProjectSource + SUWindowController.h + + + + SUWindowController + NSWindowController + + IBUserSource + + + + + + + NSActionCell + NSCell + + IBFrameworkSource + AppKit.framework/Headers/NSActionCell.h + + + + NSApplication + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSApplication.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSApplicationScripting.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSColorPanel.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSHelpManager.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSPageLayout.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSUserInterfaceItemSearching.h + + + + NSButton + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSButton.h + + + + NSButtonCell + NSActionCell + + IBFrameworkSource + AppKit.framework/Headers/NSButtonCell.h + + + + NSCell + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSCell.h + + + + NSControl + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSControl.h + + + + NSFormatter + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFormatter.h + + + + NSImageCell + NSCell + + IBFrameworkSource + AppKit.framework/Headers/NSImageCell.h + + + + NSImageView + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSImageView.h + + + + NSMenu + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSMenu.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSAccessibility.h + + + + NSObject + + + + NSObject + + + + NSObject + + + + NSObject + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSDictionaryController.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSDragging.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSFontManager.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSFontPanel.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSKeyValueBinding.h + + + + NSObject + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSNibLoading.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSOutlineView.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSPasteboard.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSSavePanel.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSTableView.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSToolbarItem.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSView.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSClassDescription.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObjectScripting.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSPortCoder.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptClassDescription.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptObjectSpecifiers.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptWhoseTests.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLDownload.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebDownload.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebEditingDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebFrameLoadDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebJavaPlugIn.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPlugin.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPluginContainer.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPolicyDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebResourceLoadDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebScriptObject.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebUIDelegate.h + + + + NSProgressIndicator + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSProgressIndicator.h + + + + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSInterfaceStyle.h + + + + NSResponder + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSResponder.h + + + + NSTextField + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSTextField.h + + + + NSTextFieldCell + NSActionCell + + IBFrameworkSource + AppKit.framework/Headers/NSTextFieldCell.h + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSClipView.h + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSMenuItem.h + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSRulerView.h + + + + NSView + NSResponder + + + + NSWindow + + IBFrameworkSource + AppKit.framework/Headers/NSDrawer.h + + + + NSWindow + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSWindow.h + + + + NSWindow + + IBFrameworkSource + AppKit.framework/Headers/NSWindowScripting.h + + + + NSWindowController + NSResponder + + showWindow: + id + + + IBFrameworkSource + AppKit.framework/Headers/NSWindowController.h + + + + + 0 + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + YES + Sparkle.xcodeproj + 3 + + diff --git a/SUStatus.nib/keyedobjects.nib b/SUStatus.nib/keyedobjects.nib index 4f1d5981..916fabc5 100644 Binary files a/SUStatus.nib/keyedobjects.nib and b/SUStatus.nib/keyedobjects.nib differ diff --git a/SUStatusController.m b/SUStatusController.m index 1a810867..16774c0a 100644 --- a/SUStatusController.m +++ b/SUStatusController.m @@ -114,6 +114,7 @@ if (value < 0) value = 0; maxProgressValue = value; [self setProgressValue:0]; + [progressBar setIndeterminate:(value == 0)]; [progressBar startAnimation:self]; } diff --git a/SUUIBasedUpdateDriver.m b/SUUIBasedUpdateDriver.m index d3fa81b2..593a1731 100644 --- a/SUUIBasedUpdateDriver.m +++ b/SUUIBasedUpdateDriver.m @@ -122,7 +122,11 @@ { // We do this here instead of in extractUpdate so that we only have a determinate progress bar for archives with progress. if ([statusController maxProgressValue] == 0) - [statusController setMaxProgressValue:[[[[NSFileManager defaultManager] fileAttributesAtPath:downloadPath traverseLink:NO] objectForKey:NSFileSize] doubleValue]]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + [statusController setMaxProgressValue:[[[[NSFileManager defaultManager] fileAttributesAtPath:downloadPath traverseLink:NO] objectForKey:NSFileSize] doubleValue]]; +#else + [statusController setMaxProgressValue:[[[[NSFileManager defaultManager] attributesOfItemAtPath:downloadPath error:NULL] objectForKey:NSFileSize] doubleValue]]; +#endif [statusController setProgressValue:[statusController progressValue] + length]; } diff --git a/SUUnarchiver_Private.h b/SUUnarchiver_Private.h index 38427a32..de828e93 100644 --- a/SUUnarchiver_Private.h +++ b/SUUnarchiver_Private.h @@ -18,7 +18,7 @@ + (BOOL)_canUnarchivePath:(NSString *)path; - _initWithPath:(NSString *)path host:(SUHost *)host; -- (void)_notifyDelegateOfExtractedLength:(long)length; +- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length; - (void)_notifyDelegateOfSuccess; - (void)_notifyDelegateOfFailure; @end diff --git a/SUUnarchiver_Private.m b/SUUnarchiver_Private.m index e856f836..a5701d97 100644 --- a/SUUnarchiver_Private.m +++ b/SUUnarchiver_Private.m @@ -31,10 +31,10 @@ return NO; } -- (void)_notifyDelegateOfExtractedLength:(long)length +- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length { if ([delegate respondsToSelector:@selector(unarchiver:extractedLength:)]) - [delegate unarchiver:self extractedLength:length]; + [delegate unarchiver:self extractedLength:[length longValue]]; } - (void)_notifyDelegateOfSuccess diff --git a/SUUpdateAlert.m b/SUUpdateAlert.m index 038e7cd9..08fa2792 100644 --- a/SUUpdateAlert.m +++ b/SUUpdateAlert.m @@ -39,6 +39,7 @@ [releaseNotesView stopLoading:self]; [releaseNotesView setFrameLoadDelegate:nil]; [releaseNotesView setPolicyDelegate:nil]; + [releaseNotesView removeFromSuperview]; // Otherwise it gets sent Esc presses (why?!) and gets very confused. [self close]; if ([delegate respondsToSelector:@selector(updateAlert:finishedWithChoice:)]) [delegate updateAlert:self finishedWithChoice:choice]; diff --git a/SUUpdater.m b/SUUpdater.m index 508862ef..0648f007 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -113,8 +113,9 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv if (shouldPrompt) { NSArray *profileInfo = [host systemProfile]; - if ([delegate respondsToSelector:@selector(feedParametersForUpdater:sendingSystemProfile:)]) - profileInfo = [profileInfo arrayByAddingObjectsFromArray:[delegate feedParametersForUpdater:self sendingSystemProfile:[self sendsSystemProfile]]]; + // Always say we're sending the system profile here so that the delegate displays the parameters it would send. + if ([delegate respondsToSelector:@selector(feedParametersForUpdater:sendingSystemProfile:)]) + profileInfo = [profileInfo arrayByAddingObjectsFromArray:[delegate feedParametersForUpdater:self sendingSystemProfile:YES]]; [SUUpdatePermissionPrompt promptWithHost:host systemProfile:profileInfo delegate:self]; // We start the update checks and register as observer for changes after the prompt finishes } diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 5cd8a160..3725478c 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -217,6 +217,14 @@ 6117796E0D1112E000749C97 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; }; 61180BC80D64138900B4E0D1 /* SUWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUWindowController.h; sourceTree = ""; }; 61180BC90D64138900B4E0D1 /* SUWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUWindowController.m; sourceTree = ""; }; + 611A904210240DD300CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Sparkle.strings; sourceTree = ""; }; + 611A904310240DE000CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pl; path = pl.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; }; + 611A904410240DE800CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pl; path = pl.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; }; + 611A904510240DF000CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pl; path = pl.lproj/SUUpdateAlert.nib; sourceTree = ""; }; + 611A904610240DF700CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Sparkle.strings; sourceTree = ""; }; + 611A904710240DFF00CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ja; path = ja.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; }; + 611A904810240E0600CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ja; path = ja.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; }; + 611A904910240E0C00CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ja; path = ja.lproj/SUUpdateAlert.nib; sourceTree = ""; }; 6120721009CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAutomaticUpdateAlert.h; sourceTree = ""; }; 6120721109CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAutomaticUpdateAlert.m; sourceTree = ""; }; 612279D90DB5470200AB99EA /* Sparkle Unit Tests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Sparkle Unit Tests.octest"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -239,6 +247,11 @@ 613151B40FB49488000DCD59 /* is */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = is; path = is.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; }; 613151B50FB49492000DCD59 /* is */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = is; path = is.lproj/SUUpdateAlert.nib; sourceTree = ""; }; 613242130CD06CEF00106AA4 /* relaunch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = relaunch.m; sourceTree = ""; }; + 615409A8103BA09100125AF1 /* ConfigTestAppReleaseGCSupport.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigTestAppReleaseGCSupport.xcconfig; sourceTree = ""; }; + 615409C4103BBC4000125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/Sparkle.strings; sourceTree = ""; }; + 615409C5103BBC5000125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = cs; path = cs.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; }; + 615409C6103BBD9F00125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = cs; path = cs.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; }; + 615409C7103BBDA600125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = cs; path = cs.lproj/SUUpdateAlert.nib; sourceTree = ""; }; 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SUModelTranslation.plist; sourceTree = ""; }; 618915700E35937600B5E981 /* sv */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = sv; path = sv.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; }; 618915710E35937600B5E981 /* sv */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = sv; path = sv.lproj/SUUpdateAlert.nib; sourceTree = ""; }; @@ -300,6 +313,10 @@ 61C268090E2DB5D000175E6C /* License.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = License.txt; sourceTree = ""; }; 61C46F350D9C54F300B06326 /* en */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = en; path = en.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; }; 61CFB3280E385186007A1735 /* Sparkle.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sparkle.pch; sourceTree = ""; }; + 61E31A7F103299450051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_BR; path = pt_BR.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; }; + 61E31A80103299500051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt_BR; path = pt_BR.lproj/Sparkle.strings; sourceTree = ""; }; + 61E31A81103299560051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_BR; path = pt_BR.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; }; + 61E31A821032995F0051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_BR; path = pt_BR.lproj/SUUpdateAlert.nib; sourceTree = ""; }; 61EF67550E25B58D00F754E0 /* SUHost.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUHost.m; sourceTree = ""; }; 61EF67580E25C5B400F754E0 /* SUHost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUHost.h; sourceTree = ""; }; 61F3651A0E18987B007ECA02 /* es */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = es; path = es.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; }; @@ -644,6 +661,7 @@ FA1941CD0D94A70100DD942E /* ConfigTestApp.xcconfig */, FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */, FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */, + 615409A8103BA09100125AF1 /* ConfigTestAppReleaseGCSupport.xcconfig */, FA1941CE0D94A70100DD942E /* ConfigRelaunch.xcconfig */, FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */, FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */, @@ -763,8 +781,9 @@ 8DC2EF520486A6940098B216 /* Resources */, 8DC2EF540486A6940098B216 /* Sources */, 8DC2EF560486A6940098B216 /* Frameworks */, - 6131B1910DDCDE32005215F0 /* Run Script: Set Bzr Version Info */, + 6131B1910DDCDE32005215F0 /* Run Script: Set git Version Info */, 6195D4B40E40505A00D41A50 /* Run Script: Link fr_CA to fr */, + 61E31A85103299750051D188 /* Run Script: Link pt to pt_BR */, ); buildRules = ( ); @@ -834,6 +853,7 @@ tr, zh_CN, fr_ca, + pt_BR, ); mainGroup = 0867D691FE84028FC02AAC07 /* Sparkle */; productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; @@ -915,19 +935,19 @@ shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; showEnvVarsInLog = 0; }; - 6131B1910DDCDE32005215F0 /* Run Script: Set Bzr Version Info */ = { + 6131B1910DDCDE32005215F0 /* Run Script: Set git Version Info */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 12; files = ( ); inputPaths = ( ); - name = "Run Script: Set Bzr Version Info"; + name = "Run Script: Set git Version Info"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = "/usr/bin/env ruby"; - shellScript = "# Xcode auto-versioning script for Subversion\n# by Axel Andersson, modified by Daniel Jalkut to add\n# \"--revision HEAD\" to the svn info line, which allows\n# the latest revision to always be used.\n\nif ENV[\"BUILT_PRODUCTS_DIR\"].nil?\n\tSTDERR.print \"#{$0}: Must be run from Xcode!\"\n\texit(1)\nend\n\n# Get the current Bzr revision number and use it to set the CFBundleVersion value\nENV[\"PATH\"] = \"/bin:/sw/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/opt/local/bin\"\nexit(0) if `type bzr` == \"\"\nrev = `/usr/bin/env bzr revno`\ninfo = \"#{ENV[\"BUILT_PRODUCTS_DIR\"]}/#{ENV[\"WRAPPER_NAME\"]}/Resources/Info.plist\"\nversion = rev[/[\\d.]+/]\n\nif version.nil?\n\tSTDERR.print \"#{$0}: Can't find a Bazaar revision!\"\n\texit(0)\nend\n\ninfo_contents = File.read(info)\nif info_contents.nil?\n\tSTDERR.print \"#{$0}: Can't read in the Info.plist file!\"\n\texit(1)\nend\n\ninfo_contents.sub!(/([\\t ]+CFBundleVersion<\\/key>\\n[\\t ]+).*?(<\\/string>)/, '\\1' + version + '\\2')\nSTDERR.print info_contents\nf = File.open(info, \"w\")\nf.write(info_contents)\nf.close"; + shellScript = "# Xcode auto-versioning script for Subversion\n# by Axel Andersson, modified by Daniel Jalkut to add\n# \"--revision HEAD\" to the svn info line, which allows\n# the latest revision to always be used.\n\nif ENV[\"BUILT_PRODUCTS_DIR\"].nil?\n\tSTDERR.print \"#{$0}: Must be run from Xcode!\"\n\texit(1)\nend\n\n# Get the current Git master hash and use it to set the CFBundleVersion value\nENV[\"PATH\"] = \"/bin:/sw/bin:/usr/local/git/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/opt/local/bin\"\nexit(0) if `type git` == \"\"\nrev = `/usr/bin/env git show-ref --abbrev heads/master`\ninfo = \"#{ENV[\"BUILT_PRODUCTS_DIR\"]}/#{ENV[\"WRAPPER_NAME\"]}/Resources/Info.plist\"\nversion = rev.split(\" \")[0]\n\nif version.nil?\n\tSTDERR.print \"#{$0}: Can't find a Git hash!\"\n\texit(0)\nend\n\ninfo_contents = File.read(info)\nif info_contents.nil?\n\tSTDERR.print \"#{$0}: Can't read in the Info.plist file!\"\n\texit(1)\nend\n\ninfo_contents.sub!(/([\\t ]+CFBundleVersion<\\/key>\\n[\\t ]+).*?(<\\/string>)/, '\\1' + version + '\\2')\nSTDERR.print info_contents\nf = File.open(info, \"w\")\nf.write(info_contents)\nf.close"; showEnvVarsInLog = 0; }; 6195D4B40E40505A00D41A50 /* Run Script: Link fr_CA to fr */ = { @@ -944,6 +964,20 @@ shellPath = "/usr/bin/env ruby"; shellScript = "resources = \"#{ENV[\"BUILT_PRODUCTS_DIR\"]}/#{ENV[\"WRAPPER_NAME\"]}/Resources\"\n`ln -sfh \"fr.lproj\" \"#{resources}/fr_CA.lproj\"`"; }; + 61E31A85103299750051D188 /* Run Script: Link pt to pt_BR */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script: Link pt to pt_BR"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = "/usr/bin/env ruby"; + shellScript = "resources = \"#{ENV[\"BUILT_PRODUCTS_DIR\"]}/#{ENV[\"WRAPPER_NAME\"]}/Resources\"\n`ln -sfh \"pt_BR.lproj\" \"#{resources}/pt.lproj\"`"; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -1066,6 +1100,10 @@ 61131A090F846D0A00E97AF6 /* zh_CN */, 61131A0A0F846D1100E97AF6 /* zh_TW */, 613151B20FB4946A000DCD59 /* is */, + 611A904210240DD300CC659E /* pl */, + 611A904610240DF700CC659E /* ja */, + 61E31A80103299500051D188 /* pt_BR */, + 615409C4103BBC4000125AF1 /* cs */, ); name = Sparkle.strings; sourceTree = ""; @@ -1085,6 +1123,10 @@ 61131A0F0F846D6100E97AF6 /* zh_CN */, 61131A100F846D6800E97AF6 /* zh_TW */, 613151B40FB49488000DCD59 /* is */, + 611A904410240DE800CC659E /* pl */, + 611A904810240E0600CC659E /* ja */, + 61E31A81103299560051D188 /* pt_BR */, + 615409C6103BBD9F00125AF1 /* cs */, ); name = SUAutomaticUpdateAlert.nib; sourceTree = ""; @@ -1104,6 +1146,10 @@ 61131A120F846D7C00E97AF6 /* zh_CN */, 61131A130F846D8400E97AF6 /* zh_TW */, 613151B50FB49492000DCD59 /* is */, + 611A904510240DF000CC659E /* pl */, + 611A904910240E0C00CC659E /* ja */, + 61E31A821032995F0051D188 /* pt_BR */, + 615409C7103BBDA600125AF1 /* cs */, ); name = SUUpdateAlert.nib; sourceTree = ""; @@ -1139,6 +1185,10 @@ 61131A0C0F846D4700E97AF6 /* zh_CN */, 61131A0D0F846D4F00E97AF6 /* zh_TW */, 613151B30FB49480000DCD59 /* is */, + 611A904310240DE000CC659E /* pl */, + 611A904710240DFF00CC659E /* ja */, + 61E31A7F103299450051D188 /* pt_BR */, + 615409C5103BBC5000125AF1 /* cs */, ); name = SUUpdatePermissionPrompt.nib; sourceTree = ""; @@ -1171,6 +1221,7 @@ 1DEB91B308733DA50010E9CD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; WARNING_CFLAGS = "-Wundeclared-selector"; }; name = Release; @@ -1199,7 +1250,7 @@ 61072EAD0DF263BD008FE88B /* Release (GC dual-mode; 10.5-only) */ = { isa = XCBuildConfiguration; buildSettings = { - GCC_VERSION = ""; + GCC_VERSION = com.apple.compilers.llvm.clang.1_0; WARNING_CFLAGS = "-Wundeclared-selector"; }; name = "Release (GC dual-mode; 10.5-only)"; @@ -1214,7 +1265,7 @@ }; 61072EAF0DF263BD008FE88B /* Release (GC dual-mode; 10.5-only) */ = { isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */; + baseConfigurationReference = 615409A8103BA09100125AF1 /* ConfigTestAppReleaseGCSupport.xcconfig */; buildSettings = { }; name = "Release (GC dual-mode; 10.5-only)"; @@ -1249,6 +1300,7 @@ ); PREBINDING = NO; PRODUCT_NAME = "Sparkle Unit Tests"; + WARNING_CFLAGS = ""; WRAPPER_EXTENSION = octest; ZERO_LINK = NO; }; diff --git a/Test Application/English.lproj/MainMenu.nib/classes.nib b/Test Application/English.lproj/MainMenu.nib/classes.nib deleted file mode 100644 index 14196291..00000000 --- a/Test Application/English.lproj/MainMenu.nib/classes.nib +++ /dev/null @@ -1,43 +0,0 @@ - - - - - IBClasses - - - CLASS - FirstResponder - LANGUAGE - ObjC - SUPERCLASS - NSObject - - - CLASS - NSObject - LANGUAGE - ObjC - - - ACTIONS - - checkForUpdates - id - - CLASS - SUUpdater - LANGUAGE - ObjC - OUTLETS - - delegate - id - - SUPERCLASS - NSObject - - - IBVersion - 1 - - diff --git a/Test Application/English.lproj/MainMenu.nib/designable.nib b/Test Application/English.lproj/MainMenu.nib/designable.nib new file mode 100644 index 00000000..72437679 --- /dev/null +++ b/Test Application/English.lproj/MainMenu.nib/designable.nib @@ -0,0 +1,2636 @@ + + + + 1050 + 10A432 + 732 + 1038 + 437.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 732 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + NSApplication + + + + FirstResponder + + + NSApplication + + + 7 + 2 + {{447, 824}, {313, 173}} + 1886912512 + Window + NSWindow + + View + + {1.79769e+308, 1.79769e+308} + {213, 107} + + + 256 + + + + 268 + {{21, 112}, {225, 18}} + + YES + + -2080244224 + 0 + Automatically check for updates + + LucidaGrande + 13 + 1044 + + + 1211912703 + 2 + + NSImage + NSSwitch + + + NSSwitch + + + + 200 + 25 + + + + + 268 + {{21, 92}, {228, 18}} + + YES + + -2080244224 + 0 + Automatically download updates + + + 1211912703 + 2 + + + + + 200 + 25 + + + + + 268 + {{21, 72}, {224, 18}} + + YES + + -2080244224 + 0 + Send system profile information + + + 1211912703 + 2 + + + + + 200 + 25 + + + + + 268 + {{21, 52}, {152, 18}} + + YES + + -2080244224 + 0 + Has launched before + + + 1211912703 + 2 + + + + + 200 + 25 + + + + + 268 + {{20, 136}, {106, 17}} + + YES + + 67239488 + 272630784 + Debug options: + + LucidaGrande-Bold + 13 + 16 + + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + 3 + MAA + + + + + + + 268 + {{17, 20}, {157, 17}} + + YES + + 68288064 + 272630784 + Check for updates every + + + + + + + + + 268 + {{240, 20}, {56, 17}} + + YES + + 68288064 + 272630784 + seconds + + + + + + + + + 268 + {{179, 18}, {56, 22}} + + YES + + -1804468671 + 272630784 + + + + YES + + 6 + System + textBackgroundColor + + 3 + MQA + + + + 6 + System + textColor + + + + + + {313, 173} + + + {{0, 0}, {1680, 1028}} + {213, 129} + {1.79769e+308, 1.79769e+308} + + + MainMenu + + + + NewApplication + + 1048576 + 2147483647 + + NSImage + NSMenuCheckmark + + + NSImage + NSMenuMixedState + + submenuAction: + + NewApplication + + + + About NewApplication + + 2147483647 + + + + + + Check for Updates... + u + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Preferences… + , + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Services + + 1048576 + 2147483647 + + + submenuAction: + + + Services + + + _NSServicesMenu + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Hide NewApplication + h + 1048576 + 2147483647 + + + + + + Hide Others + h + 1572864 + 2147483647 + + + + + + Show All + + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Quit NewApplication + q + 1048576 + 2147483647 + + + + + _NSAppleMenu + + + + + File + + 1048576 + 2147483647 + + + submenuAction: + + + File + + + + + New + n + 1048576 + 2147483647 + + + + + + Open... + o + 1048576 + 2147483647 + + + + + + Open Recent + + 1048576 + 2147483647 + + + submenuAction: + + + Open Recent + + + + + Clear Menu + + 1048576 + 2147483647 + + + + + _NSRecentDocumentsMenu + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Close + w + 1048576 + 2147483647 + + + + + + Save + s + 1048576 + 2147483647 + + + + + + Save As… + S + 1048576 + 2147483647 + + + + + + Revert + + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Page Setup… + P + 1048576 + 2147483647 + + + + + + Print… + p + 1048576 + 2147483647 + + + + + + + + + Edit + + 1048576 + 2147483647 + + + submenuAction: + + + Edit + + + + + Undo + z + 1048576 + 2147483647 + + + + + + Redo + Z + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Cut + x + 1048576 + 2147483647 + + + + + + Copy + c + 1048576 + 2147483647 + + + + + + Paste + v + 1048576 + 2147483647 + + + + + + Paste and Match Style + V + 1572864 + 2147483647 + + + + + + Delete + + 1048576 + 2147483647 + + + + + + Select All + a + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Find + + 1048576 + 2147483647 + + + submenuAction: + + + Find + + + + + Find… + f + 1048576 + 2147483647 + + + 1 + + + + Find Next + g + 1048576 + 2147483647 + + + 2 + + + + Find Previous + G + 1048576 + 2147483647 + + + 3 + + + + Use Selection for Find + e + 1048576 + 2147483647 + + + 7 + + + + Jump to Selection + j + 1048576 + 2147483647 + + + + + + + + + Spelling + + 1048576 + 2147483647 + + + submenuAction: + + Spelling + + + + Spelling… + : + 1048576 + 2147483647 + + + + + + Check Spelling + ; + 1048576 + 2147483647 + + + + + + Check Spelling as You Type + + 1048576 + 2147483647 + + + + + + + + + + + + Window + + 1048576 + 2147483647 + + + submenuAction: + + + Window + + + + + Minimize + m + 1048576 + 2147483647 + + + + + + Zoom + + 1048576 + 2147483647 + + + + + + YES + YES + + + 1048576 + 2147483647 + + + + + + Bring All to Front + + 1048576 + 2147483647 + + + + + _NSWindowsMenu + + + + + Help + + 1048576 + 2147483647 + + + submenuAction: + + Help + + + + NewApplication Help + ? + 1048576 + 2147483647 + + + + + + + + _NSMainMenu + + + SUUpdater + + + YES + + + + + + + performMiniaturize: + + + + 37 + + + + arrangeInFront: + + + + 39 + + + + print: + + + + 86 + + + + runPageLayout: + + + + 87 + + + + showHelp: + + + + 122 + + + + clearRecentDocuments: + + + + 127 + + + + terminate: + + + + 139 + + + + orderFrontStandardAboutPanel: + + + + 142 + + + + hideOtherApplications: + + + + 146 + + + + hide: + + + + 152 + + + + unhideAllApplications: + + + + 153 + + + + cut: + + + + 175 + + + + paste: + + + + 176 + + + + redo: + + + + 178 + + + + selectAll: + + + + 179 + + + + undo: + + + + 180 + + + + copy: + + + + 181 + + + + showGuessPanel: + + + + 188 + + + + checkSpelling: + + + + 190 + + + + toggleContinuousSpellChecking: + + + + 192 + + + + performClose: + + + + 193 + + + + delete: + + + + 195 + + + + performZoom: + + + + 198 + + + + performFindPanelAction: + + + + 199 + + + + performFindPanelAction: + + + + 200 + + + + performFindPanelAction: + + + + 201 + + + + performFindPanelAction: + + + + 202 + + + + centerSelectionInVisibleArea: + + + + 203 + + + + pasteAsPlainText: + + + + 205 + + + + checkForUpdates: + + + + 208 + + + + value: values.SUHasLaunchedBefore + + + + + + value: values.SUHasLaunchedBefore + value + values.SUHasLaunchedBefore + 2 + + + 225 + + + + value: automaticallyChecksForUpdates + + + + + + value: automaticallyChecksForUpdates + value + automaticallyChecksForUpdates + 2 + + + 257 + + + + value: automaticallyDownloadsUpdates + + + + + + value: automaticallyDownloadsUpdates + value + automaticallyDownloadsUpdates + 2 + + + 259 + + + + value: sendsSystemProfile + + + + + + value: sendsSystemProfile + value + sendsSystemProfile + 2 + + + 261 + + + + value: updateCheckInterval + + + + + + value: updateCheckInterval + value + updateCheckInterval + 2 + + + 263 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 21 + + + + + + Window + + + 2 + + + + + + + + + + + + + + + 210 + + + + + + + + 216 + + + + + + + + 220 + + + + + + + + 222 + + + + + + + + 227 + + + + + + + + 238 + + + + + + + + 240 + + + + + + + + 242 + + + + + + + + 29 + + + + + + + + + + MainMenu + + + 19 + + + + + + + + 24 + + + + + + + + + + + 5 + + + + + 23 + + + + + 92 + + + + + 197 + + + + + 56 + + + + + + + + 57 + + + + + + + + + + + + + + + + + + + 58 + + + + + 129 + + + + + 131 + + + + + + + + 130 + + + + + 134 + + + + + 136 + + + + + 143 + + + + + 144 + + + + + 145 + + + + + 149 + + + + + 150 + + + + + 196 + + + + + 207 + + + + + 83 + + + + + + + + 81 + + + + + + + + + + + + + + + + + + 72 + + + + + 73 + + + + + 74 + + + + + 75 + + + + + 77 + + + + + 78 + + + + + 79 + + + + + 80 + + + + + 82 + + + + + 112 + + + + + 124 + + + + + + + + 125 + + + + + + + + 126 + + + + + 103 + + + + + + + + 106 + + + + + + + + 111 + + + + + 163 + + + + + + + + 169 + + + + + + + + + + + + + + + + + + + 156 + + + + + 157 + + + + + 158 + + + + + 160 + + + + + 164 + + + + + 168 + + + + + + + + 159 + + + + + + + + + + + + 154 + + + + + 155 + + + + + 161 + + + + + 162 + + + + + 167 + + + + + 171 + + + + + 172 + + + + + 173 + + + + + 174 + + + + + 184 + + + + + + + + 185 + + + + + + + + + + 187 + + + + + 189 + + + + + 191 + + + + + 204 + + + + + 206 + + + SUUpdater + + + 212 + + + Shared User Defaults Controller + + + 248 + + + + + 249 + + + + + 250 + + + + + 251 + + + + + 252 + + + + + 253 + + + + + 254 + + + + + 255 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + + com.apple.InterfaceBuilder.CocoaPlugin + + {{0, 672}, {313, 173}} + com.apple.InterfaceBuilder.CocoaPlugin + {{0, 672}, {313, 173}} + + + + {213, 107} + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + {{258, 684}, {362, 20}} + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + {{270, 481}, {242, 203}} + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + + 263 + + + + + FirstResponder + + IBUserSource + + + + + NSObject + + IBProjectSource + SUAppcast.h + + + + NSObject + + IBProjectSource + SUAutomaticUpdateAlert.h + + + + NSObject + + IBProjectSource + SUInstaller.h + + + + NSObject + + IBProjectSource + SUUnarchiver.h + + + + NSObject + + IBProjectSource + SUUpdateAlert.h + + + + NSObject + + IBProjectSource + SUUpdatePermissionPrompt.h + + + + NSObject + + IBProjectSource + SUUpdater.h + + + + NSObject + + IBUserSource + + + + + SUUpdater + NSObject + + checkForUpdates: + id + + + delegate + id + + + + + SUUpdater + NSObject + + IBUserSource + + + + + + + NSActionCell + NSCell + + IBFrameworkSource + AppKit.framework/Headers/NSActionCell.h + + + + NSApplication + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSApplication.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSApplicationScripting.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSColorPanel.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSHelpManager.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSPageLayout.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSUserInterfaceItemSearching.h + + + + NSBrowser + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSBrowser.h + + + + NSButton + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSButton.h + + + + NSButtonCell + NSActionCell + + IBFrameworkSource + AppKit.framework/Headers/NSButtonCell.h + + + + NSCell + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSCell.h + + + + NSControl + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSControl.h + + + + NSController + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSController.h + + + + NSDocument + NSObject + + id + id + id + id + id + id + + + IBFrameworkSource + AppKit.framework/Headers/NSDocument.h + + + + NSDocument + + IBFrameworkSource + AppKit.framework/Headers/NSDocumentScripting.h + + + + NSDocumentController + NSObject + + id + id + id + id + + + IBFrameworkSource + AppKit.framework/Headers/NSDocumentController.h + + + + NSFormatter + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFormatter.h + + + + NSMatrix + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSMatrix.h + + + + NSMenu + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSMenu.h + + + + NSMenuItem + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSMenuItem.h + + + + NSMovieView + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSMovieView.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSAccessibility.h + + + + NSObject + + + + NSObject + + + + NSObject + + + + NSObject + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSDictionaryController.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSDragging.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSFontManager.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSFontPanel.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSKeyValueBinding.h + + + + NSObject + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSNibLoading.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSOutlineView.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSPasteboard.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSSavePanel.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSTableView.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSToolbarItem.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSView.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSClassDescription.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObjectScripting.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSPortCoder.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptClassDescription.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptObjectSpecifiers.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptWhoseTests.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLDownload.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebDownload.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebEditingDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebFrameLoadDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebJavaPlugIn.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPlugin.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPluginContainer.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPolicyDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebResourceLoadDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebScriptObject.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebUIDelegate.h + + + + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSInterfaceStyle.h + + + + NSResponder + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSResponder.h + + + + NSTableView + NSControl + + + + NSText + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSText.h + + + + NSTextField + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSTextField.h + + + + NSTextFieldCell + NSActionCell + + IBFrameworkSource + AppKit.framework/Headers/NSTextFieldCell.h + + + + NSUserDefaultsController + NSController + + IBFrameworkSource + AppKit.framework/Headers/NSUserDefaultsController.h + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSClipView.h + + + + NSView + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSRulerView.h + + + + NSView + NSResponder + + + + NSWindow + + IBFrameworkSource + AppKit.framework/Headers/NSDrawer.h + + + + NSWindow + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSWindow.h + + + + NSWindow + + IBFrameworkSource + AppKit.framework/Headers/NSWindowScripting.h + + + + WebView + NSView + + id + id + id + id + id + id + id + id + id + id + id + + + IBFrameworkSource + WebKit.framework/Headers/WebView.h + + + + + 0 + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + YES + ../../Sparkle.xcodeproj + 3 + + diff --git a/Test Application/English.lproj/MainMenu.nib/info.nib b/Test Application/English.lproj/MainMenu.nib/info.nib deleted file mode 100644 index 09d03620..00000000 --- a/Test Application/English.lproj/MainMenu.nib/info.nib +++ /dev/null @@ -1,21 +0,0 @@ - - - - - IBFramework Version - 667 - IBLastKnownRelativeProjectPath - ../../Sparkle.xcodeproj - IBOldestOS - 5 - IBOpenObjects - - 2 - 57 - - IBSystem Version - 9D34 - targetFramework - IBCocoaFramework - - diff --git a/Test Application/English.lproj/MainMenu.nib/keyedobjects.nib b/Test Application/English.lproj/MainMenu.nib/keyedobjects.nib index afe4c17d..bd3d4a2e 100644 Binary files a/Test Application/English.lproj/MainMenu.nib/keyedobjects.nib and b/Test Application/English.lproj/MainMenu.nib/keyedobjects.nib differ diff --git a/ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/cs.lproj/SUAutomaticUpdateAlert.nib/classes.nib similarity index 74% rename from ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib rename to cs.lproj/SUAutomaticUpdateAlert.nib/classes.nib index 0f776c89..4b1ab30e 100644 --- a/ru.lproj/SUUpdatePermissionPrompt.nib/classes.nib +++ b/cs.lproj/SUAutomaticUpdateAlert.nib/classes.nib @@ -4,12 +4,6 @@ IBClasses - - CLASS - NSObject - LANGUAGE - ObjC - CLASS SUWindowController @@ -21,26 +15,17 @@ ACTIONS - finishPrompt + doNotInstall id - toggleMoreInfo + installLater + id + installNow id CLASS - SUUpdatePermissionPrompt + SUAutomaticUpdateAlert LANGUAGE ObjC - OUTLETS - - delegate - id - descriptionTextField - NSTextField - moreInfoButton - NSButton - moreInfoView - NSView - SUPERCLASS SUWindowController @@ -52,6 +37,12 @@ SUPERCLASS NSObject + + CLASS + NSObject + LANGUAGE + ObjC + IBVersion 1 diff --git a/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib b/cs.lproj/SUAutomaticUpdateAlert.nib/info.nib similarity index 91% rename from ru.lproj/SUUpdatePermissionPrompt.nib/info.nib rename to cs.lproj/SUAutomaticUpdateAlert.nib/info.nib index 5132e29f..49d7e194 100644 --- a/ru.lproj/SUUpdatePermissionPrompt.nib/info.nib +++ b/cs.lproj/SUAutomaticUpdateAlert.nib/info.nib @@ -3,7 +3,7 @@ IBFramework Version - 670 + 677 IBLastKnownRelativeProjectPath ../Sparkle.xcodeproj IBOldestOS @@ -11,7 +11,7 @@ IBOpenObjects IBSystem Version - 9E17 + 9J61 targetFramework IBCocoaFramework diff --git a/cs.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/cs.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib new file mode 100644 index 00000000..a38f5155 Binary files /dev/null and b/cs.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib differ diff --git a/SUStatus.nib/classes.nib b/cs.lproj/SUUpdateAlert.nib/classes.nib similarity index 73% rename from SUStatus.nib/classes.nib rename to cs.lproj/SUUpdateAlert.nib/classes.nib index 22f13f8b..994d4c36 100644 --- a/SUStatus.nib/classes.nib +++ b/cs.lproj/SUUpdateAlert.nib/classes.nib @@ -20,6 +20,32 @@ SUPERCLASS NSResponder + + ACTIONS + + installUpdate + id + remindMeLater + id + skipThisVersion + id + + CLASS + SUUpdateAlert + LANGUAGE + ObjC + OUTLETS + + delegate + id + description + NSTextField + releaseNotesView + WebView + + SUPERCLASS + SUWindowController + CLASS FirstResponder @@ -34,21 +60,6 @@ LANGUAGE ObjC - - CLASS - SUStatusController - LANGUAGE - ObjC - OUTLETS - - actionButton - NSButton - progressBar - NSProgressIndicator - - SUPERCLASS - SUWindowController - IBVersion 1 diff --git a/cs.lproj/SUUpdateAlert.nib/info.nib b/cs.lproj/SUUpdateAlert.nib/info.nib new file mode 100644 index 00000000..49d7e194 --- /dev/null +++ b/cs.lproj/SUUpdateAlert.nib/info.nib @@ -0,0 +1,18 @@ + + + + + IBFramework Version + 677 + IBLastKnownRelativeProjectPath + ../Sparkle.xcodeproj + IBOldestOS + 5 + IBOpenObjects + + IBSystem Version + 9J61 + targetFramework + IBCocoaFramework + + diff --git a/cs.lproj/SUUpdateAlert.nib/keyedobjects.nib b/cs.lproj/SUUpdateAlert.nib/keyedobjects.nib new file mode 100644 index 00000000..be7dc310 Binary files /dev/null and b/cs.lproj/SUUpdateAlert.nib/keyedobjects.nib differ diff --git a/de.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/cs.lproj/SUUpdatePermissionPrompt.nib/classes.nib similarity index 100% rename from de.lproj/SUUpdatePermissionPrompt.nib/classes.nib rename to cs.lproj/SUUpdatePermissionPrompt.nib/classes.nib diff --git a/it.lproj/SUUpdatePermissionPrompt.nib/info.nib b/cs.lproj/SUUpdatePermissionPrompt.nib/info.nib similarity index 91% rename from it.lproj/SUUpdatePermissionPrompt.nib/info.nib rename to cs.lproj/SUUpdatePermissionPrompt.nib/info.nib index c4934850..7de3db60 100644 --- a/it.lproj/SUUpdatePermissionPrompt.nib/info.nib +++ b/cs.lproj/SUUpdatePermissionPrompt.nib/info.nib @@ -3,7 +3,7 @@ IBFramework Version - 667 + 677 IBLastKnownRelativeProjectPath ../Sparkle.xcodeproj IBOldestOS @@ -13,7 +13,7 @@ 5 IBSystem Version - 9D34 + 9J61 targetFramework IBCocoaFramework diff --git a/cs.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/cs.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib new file mode 100644 index 00000000..0d2a88d6 Binary files /dev/null and b/cs.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/cs.lproj/Sparkle.strings b/cs.lproj/Sparkle.strings index 53766305..efedd275 100644 Binary files a/cs.lproj/Sparkle.strings and b/cs.lproj/Sparkle.strings differ diff --git a/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib index b403a3e4..4b3f2e0b 100644 Binary files a/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib and b/de.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/es.lproj/SUUpdatePermissionPrompt.nib/info.nib b/es.lproj/SUUpdatePermissionPrompt.nib/info.nib deleted file mode 100644 index 3eb7f818..00000000 --- a/es.lproj/SUUpdatePermissionPrompt.nib/info.nib +++ /dev/null @@ -1,20 +0,0 @@ - - - - - IBFramework Version - 667 - IBLastKnownRelativeProjectPath - ../../Sparkle.xcodeproj - IBOldestOS - 5 - IBOpenObjects - - 6 - - IBSystem Version - 9D34 - targetFramework - IBCocoaFramework - - diff --git a/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib index 8c54c217..16f45af6 100644 Binary files a/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib and b/es.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib b/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib deleted file mode 100644 index d2586ea2..00000000 --- a/fr.lproj/SUUpdatePermissionPrompt.nib/info.nib +++ /dev/null @@ -1,16 +0,0 @@ - - - - - IBFramework Version - 629 - IBOldestOS - 5 - IBOpenObjects - - IBSystem Version - 9E17 - targetFramework - IBCocoaFramework - - diff --git a/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib index 4b7cc905..8c4595d4 100644 Binary files a/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib and b/fr.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib index 55cc2c27..5b0abbd3 100644 Binary files a/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib and b/it.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/it.lproj/Sparkle.strings b/it.lproj/Sparkle.strings index 68b95e4e..64169b79 100644 Binary files a/it.lproj/Sparkle.strings and b/it.lproj/Sparkle.strings differ diff --git a/it.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/ja.lproj/SUAutomaticUpdateAlert.nib/classes.nib similarity index 74% rename from it.lproj/SUUpdatePermissionPrompt.nib/classes.nib rename to ja.lproj/SUAutomaticUpdateAlert.nib/classes.nib index 5220a221..4b1ab30e 100644 --- a/it.lproj/SUUpdatePermissionPrompt.nib/classes.nib +++ b/ja.lproj/SUAutomaticUpdateAlert.nib/classes.nib @@ -15,26 +15,17 @@ ACTIONS - finishPrompt + doNotInstall id - toggleMoreInfo + installLater + id + installNow id CLASS - SUUpdatePermissionPrompt + SUAutomaticUpdateAlert LANGUAGE ObjC - OUTLETS - - delegate - id - descriptionTextField - NSTextField - moreInfoButton - NSButton - moreInfoView - NSView - SUPERCLASS SUWindowController diff --git a/ja.lproj/SUAutomaticUpdateAlert.nib/info.nib b/ja.lproj/SUAutomaticUpdateAlert.nib/info.nib new file mode 100644 index 00000000..49d7e194 --- /dev/null +++ b/ja.lproj/SUAutomaticUpdateAlert.nib/info.nib @@ -0,0 +1,18 @@ + + + + + IBFramework Version + 677 + IBLastKnownRelativeProjectPath + ../Sparkle.xcodeproj + IBOldestOS + 5 + IBOpenObjects + + IBSystem Version + 9J61 + targetFramework + IBCocoaFramework + + diff --git a/ja.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/ja.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib new file mode 100644 index 00000000..02e3ebaf Binary files /dev/null and b/ja.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib differ diff --git a/ja.lproj/SUUpdateAlert.nib/classes.nib b/ja.lproj/SUUpdateAlert.nib/classes.nib new file mode 100644 index 00000000..994d4c36 --- /dev/null +++ b/ja.lproj/SUUpdateAlert.nib/classes.nib @@ -0,0 +1,67 @@ + + + + + IBClasses + + + CLASS + SUWindowController + LANGUAGE + ObjC + SUPERCLASS + NSWindowController + + + CLASS + NSApplication + LANGUAGE + ObjC + SUPERCLASS + NSResponder + + + ACTIONS + + installUpdate + id + remindMeLater + id + skipThisVersion + id + + CLASS + SUUpdateAlert + LANGUAGE + ObjC + OUTLETS + + delegate + id + description + NSTextField + releaseNotesView + WebView + + SUPERCLASS + SUWindowController + + + CLASS + FirstResponder + LANGUAGE + ObjC + SUPERCLASS + NSObject + + + CLASS + NSObject + LANGUAGE + ObjC + + + IBVersion + 1 + + diff --git a/ja.lproj/SUUpdateAlert.nib/info.nib b/ja.lproj/SUUpdateAlert.nib/info.nib new file mode 100644 index 00000000..49d7e194 --- /dev/null +++ b/ja.lproj/SUUpdateAlert.nib/info.nib @@ -0,0 +1,18 @@ + + + + + IBFramework Version + 677 + IBLastKnownRelativeProjectPath + ../Sparkle.xcodeproj + IBOldestOS + 5 + IBOpenObjects + + IBSystem Version + 9J61 + targetFramework + IBCocoaFramework + + diff --git a/ja.lproj/SUUpdateAlert.nib/keyedobjects.nib b/ja.lproj/SUUpdateAlert.nib/keyedobjects.nib new file mode 100644 index 00000000..05bd261d Binary files /dev/null and b/ja.lproj/SUUpdateAlert.nib/keyedobjects.nib differ diff --git a/es.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/ja.lproj/SUUpdatePermissionPrompt.nib/classes.nib similarity index 100% rename from es.lproj/SUUpdatePermissionPrompt.nib/classes.nib rename to ja.lproj/SUUpdatePermissionPrompt.nib/classes.nib diff --git a/ja.lproj/SUUpdatePermissionPrompt.nib/info.nib b/ja.lproj/SUUpdatePermissionPrompt.nib/info.nib new file mode 100644 index 00000000..49d7e194 --- /dev/null +++ b/ja.lproj/SUUpdatePermissionPrompt.nib/info.nib @@ -0,0 +1,18 @@ + + + + + IBFramework Version + 677 + IBLastKnownRelativeProjectPath + ../Sparkle.xcodeproj + IBOldestOS + 5 + IBOpenObjects + + IBSystem Version + 9J61 + targetFramework + IBCocoaFramework + + diff --git a/ja.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/ja.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib new file mode 100644 index 00000000..6f67e230 Binary files /dev/null and b/ja.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/ja.lproj/Sparkle.strings b/ja.lproj/Sparkle.strings index dfda2257..3ced3759 100644 Binary files a/ja.lproj/Sparkle.strings and b/ja.lproj/Sparkle.strings differ diff --git a/pt.lproj/Sparkle.strings b/pt.lproj/Sparkle.strings deleted file mode 100644 index 675fb99e..00000000 Binary files a/pt.lproj/Sparkle.strings and /dev/null differ diff --git a/sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/pt_BR.lproj/SUAutomaticUpdateAlert.nib/classes.nib similarity index 74% rename from sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib rename to pt_BR.lproj/SUAutomaticUpdateAlert.nib/classes.nib index 5220a221..4b1ab30e 100644 --- a/sv.lproj/SUUpdatePermissionPrompt.nib/classes.nib +++ b/pt_BR.lproj/SUAutomaticUpdateAlert.nib/classes.nib @@ -15,26 +15,17 @@ ACTIONS - finishPrompt + doNotInstall id - toggleMoreInfo + installLater + id + installNow id CLASS - SUUpdatePermissionPrompt + SUAutomaticUpdateAlert LANGUAGE ObjC - OUTLETS - - delegate - id - descriptionTextField - NSTextField - moreInfoButton - NSButton - moreInfoView - NSView - SUPERCLASS SUWindowController diff --git a/de.lproj/SUUpdatePermissionPrompt.nib/info.nib b/pt_BR.lproj/SUAutomaticUpdateAlert.nib/info.nib similarity index 91% rename from de.lproj/SUUpdatePermissionPrompt.nib/info.nib rename to pt_BR.lproj/SUAutomaticUpdateAlert.nib/info.nib index 2e04cfa0..fe716c38 100644 --- a/de.lproj/SUUpdatePermissionPrompt.nib/info.nib +++ b/pt_BR.lproj/SUAutomaticUpdateAlert.nib/info.nib @@ -3,7 +3,7 @@ IBFramework Version - 667 + 677 IBLastKnownRelativeProjectPath ../Sparkle.xcodeproj IBOldestOS @@ -13,7 +13,7 @@ 6 IBSystem Version - 9D34 + 9J61 targetFramework IBCocoaFramework diff --git a/pt_BR.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib b/pt_BR.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib new file mode 100644 index 00000000..aa24217f Binary files /dev/null and b/pt_BR.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib differ diff --git a/pt_BR.lproj/SUUpdateAlert.nib/classes.nib b/pt_BR.lproj/SUUpdateAlert.nib/classes.nib new file mode 100644 index 00000000..994d4c36 --- /dev/null +++ b/pt_BR.lproj/SUUpdateAlert.nib/classes.nib @@ -0,0 +1,67 @@ + + + + + IBClasses + + + CLASS + SUWindowController + LANGUAGE + ObjC + SUPERCLASS + NSWindowController + + + CLASS + NSApplication + LANGUAGE + ObjC + SUPERCLASS + NSResponder + + + ACTIONS + + installUpdate + id + remindMeLater + id + skipThisVersion + id + + CLASS + SUUpdateAlert + LANGUAGE + ObjC + OUTLETS + + delegate + id + description + NSTextField + releaseNotesView + WebView + + SUPERCLASS + SUWindowController + + + CLASS + FirstResponder + LANGUAGE + ObjC + SUPERCLASS + NSObject + + + CLASS + NSObject + LANGUAGE + ObjC + + + IBVersion + 1 + + diff --git a/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib b/pt_BR.lproj/SUUpdateAlert.nib/info.nib similarity index 91% rename from sv.lproj/SUUpdatePermissionPrompt.nib/info.nib rename to pt_BR.lproj/SUUpdateAlert.nib/info.nib index c5a067e8..fe716c38 100644 --- a/sv.lproj/SUUpdatePermissionPrompt.nib/info.nib +++ b/pt_BR.lproj/SUUpdateAlert.nib/info.nib @@ -3,7 +3,7 @@ IBFramework Version - 670 + 677 IBLastKnownRelativeProjectPath ../Sparkle.xcodeproj IBOldestOS @@ -13,7 +13,7 @@ 6 IBSystem Version - 10A96 + 9J61 targetFramework IBCocoaFramework diff --git a/pt_BR.lproj/SUUpdateAlert.nib/keyedobjects.nib b/pt_BR.lproj/SUUpdateAlert.nib/keyedobjects.nib new file mode 100644 index 00000000..589aa7d4 Binary files /dev/null and b/pt_BR.lproj/SUUpdateAlert.nib/keyedobjects.nib differ diff --git a/fr.lproj/SUUpdatePermissionPrompt.nib/classes.nib b/pt_BR.lproj/SUUpdatePermissionPrompt.nib/classes.nib similarity index 100% rename from fr.lproj/SUUpdatePermissionPrompt.nib/classes.nib rename to pt_BR.lproj/SUUpdatePermissionPrompt.nib/classes.nib diff --git a/SUStatus.nib/info.nib b/pt_BR.lproj/SUUpdatePermissionPrompt.nib/info.nib similarity index 84% rename from SUStatus.nib/info.nib rename to pt_BR.lproj/SUUpdatePermissionPrompt.nib/info.nib index a9ac8673..fe716c38 100644 --- a/SUStatus.nib/info.nib +++ b/pt_BR.lproj/SUUpdatePermissionPrompt.nib/info.nib @@ -3,9 +3,9 @@ IBFramework Version - 670 + 677 IBLastKnownRelativeProjectPath - Sparkle.xcodeproj + ../Sparkle.xcodeproj IBOldestOS 5 IBOpenObjects @@ -13,7 +13,7 @@ 6 IBSystem Version - 10A96 + 9J61 targetFramework IBCocoaFramework diff --git a/pt_BR.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/pt_BR.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib new file mode 100644 index 00000000..a4fe8481 Binary files /dev/null and b/pt_BR.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/pt_BR.lproj/Sparkle.strings b/pt_BR.lproj/Sparkle.strings new file mode 100644 index 00000000..e4d51a18 Binary files /dev/null and b/pt_BR.lproj/Sparkle.strings differ diff --git a/relaunch.m b/relaunch.m index b38d555e..1bc87543 100644 --- a/relaunch.m +++ b/relaunch.m @@ -39,7 +39,11 @@ - (void) relaunch { [[NSWorkspace sharedWorkspace] openFile:[[NSFileManager defaultManager] stringWithFileSystemRepresentation:executablePath length:strlen(executablePath)]]; - [[NSFileManager defaultManager] removeFileAtPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"relaunch"] handler:nil]; +#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 + [[NSFileManager defaultManager] removeFileAtPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"relaunch"] handler:nil]; +#else + [[NSFileManager defaultManager] removeItemAtPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"relaunch"] error:NULL]; +#endif exit(0); } diff --git a/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib index c09d9e70..5bff1961 100644 Binary files a/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib and b/ru.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ diff --git a/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib b/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib index 64babac1..da7b3c5f 100644 Binary files a/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib and b/sv.lproj/SUUpdatePermissionPrompt.nib/keyedobjects.nib differ