diff --git a/SUStatus.nib/classes.nib b/SUStatus.nib/classes.nib
index 3c6ae83f..22f13f8b 100644
--- a/SUStatus.nib/classes.nib
+++ b/SUStatus.nib/classes.nib
@@ -4,6 +4,14 @@
IBClasses
+
+ CLASS
+ SUWindowController
+ LANGUAGE
+ ObjC
+ SUPERCLASS
+ NSWindowController
+
CLASS
NSApplication
@@ -39,7 +47,7 @@
NSProgressIndicator
SUPERCLASS
- NSWindowController
+ SUWindowController
IBVersion
diff --git a/SUStatus.nib/info.nib b/SUStatus.nib/info.nib
index 4318cb1b..e4c18860 100644
--- a/SUStatus.nib/info.nib
+++ b/SUStatus.nib/info.nib
@@ -3,9 +3,9 @@
IBFramework Version
- 629
+ 667
IBLastKnownRelativeProjectPath
- ../Sparkle.xcodeproj
+ Sparkle.xcodeproj
IBOldestOS
5
IBOpenObjects
@@ -13,7 +13,7 @@
6
IBSystem Version
- 9C31
+ 9D34
targetFramework
IBCocoaFramework
diff --git a/SUStatus.nib/keyedobjects.nib b/SUStatus.nib/keyedobjects.nib
index 4bdc9d67..ba1c0c3d 100644
Binary files a/SUStatus.nib/keyedobjects.nib and b/SUStatus.nib/keyedobjects.nib differ
diff --git a/SUStatusController.m b/SUStatusController.m
index cea7a52d..f344569b 100644
--- a/SUStatusController.m
+++ b/SUStatusController.m
@@ -104,9 +104,10 @@
- (void)setMaxProgressValue:(double)value
{
+ if (value < 0) value = 0;
maxProgressValue = value;
[self setProgressValue:0];
- [progressBar setIndeterminate:(value == 0)];
+ [progressBar startAnimation:self];
}
- (void)setStatusText:(NSString *)aStatusText
diff --git a/SUUIBasedUpdateDriver.m b/SUUIBasedUpdateDriver.m
index 848ba42f..f7ae0be8 100644
--- a/SUUIBasedUpdateDriver.m
+++ b/SUUIBasedUpdateDriver.m
@@ -75,7 +75,10 @@
- (void)download:(NSURLDownload *)download didReceiveDataOfLength:(NSUInteger)length
{
[statusController setProgressValue:[statusController progressValue] + length];
- [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ of %@", nil), [NSNumber humanReadableSizeFromDouble:[statusController progressValue]], [NSNumber humanReadableSizeFromDouble:[statusController maxProgressValue]]]];
+ if ([statusController maxProgressValue] > 0)
+ [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ of %@", nil), [NSNumber humanReadableSizeFromDouble:[statusController progressValue]], [NSNumber humanReadableSizeFromDouble:[statusController maxProgressValue]]]];
+ else
+ [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ downloaded", nil), [NSNumber humanReadableSizeFromDouble:[statusController progressValue]]]];
}
- (IBAction)cancelDownload:sender