Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes a compile warning; using NSUInteger in place of unsigned.

  • Loading branch information...
commit 269a648d24c7ac2960e892010c095e84bdfee156 1 parent c2745f5
@andymatuschak andymatuschak authored
Showing with 14 additions and 4 deletions.
  1. +14 −4 SUUserInitiatedUpdateDriver.m
View
18 SUUserInitiatedUpdateDriver.m
@@ -21,6 +21,18 @@ - (void)checkForUpdatesAtURL:(NSURL *)appcastURL hostBundle:(NSBundle *)hb
[checkingController showWindow:self];
}
+- (void)closeCheckingWindow
+{
+ [[checkingController window] close];
+ [checkingController release];
+}
+
+- (void)appcast:(SUAppcast *)ac failedToLoadWithError:(NSError *)error
+{
+ [self closeCheckingWindow];
+ [super appcast:ac failedToLoadWithError:error];
+}
+
- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui
{
// We don't check to see if this update's been skipped, because the user explicitly *asked* if he had the latest version.
@@ -29,15 +41,13 @@ - (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui
- (void)didNotFindUpdate
{
- [[checkingController window] close];
- [checkingController release];
+ [self closeCheckingWindow];
[super didNotFindUpdate];
}
- (void)didFindValidUpdate
{
- [[checkingController window] close];
- [checkingController release];
+ [self closeCheckingWindow];
[super didFindValidUpdate];
}
Please sign in to comment.
Something went wrong with that request. Please try again.