Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (29 sloc) 0.809 kb
bc3be9a Touched practically every line of code in a super-monster-awesome refact...
andym authored
1 //
2 // SUScheduledUpdateDriver.m
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 5/6/08.
6 // Copyright 2008 Andy Matuschak. All rights reserved.
7 //
8
9 #import "SUScheduledUpdateDriver.h"
10 #import "Sparkle.h"
11
12 @implementation SUScheduledUpdateDriver
13
14 - (void)didFindValidUpdate
15 {
16 showErrors = YES; // We only start showing errors after we present the UI for the first time.
17 [super didFindValidUpdate];
18 }
19
20 - (void)didNotFindUpdate
21 {
3d6f454 SUScheduledUpdateDriver doesn't call updaterDidNotFindUpdate
Peter Speck authored
22 if ([[updater delegate] respondsToSelector:@selector(updaterDidNotFindUpdate:)])
23 [[updater delegate] updaterDidNotFindUpdate:updater];
bc3be9a Touched practically every line of code in a super-monster-awesome refact...
andym authored
24 [self abortUpdate]; // Don't tell the user that no update was found; this was a scheduled update.
25 }
26
27 - (void)abortUpdateWithError:(NSError *)error
28 {
29 if (showErrors)
30 [super abortUpdateWithError:error];
31 else
32 [self abortUpdate];
33 }
34
35 @end
Something went wrong with that request. Please try again.