| Revision 134,
784 bytes
checked in by speck, 4 years ago
(diff) |
|
Simple display of suspects in preference panel.
|
| Line | |
|---|
| 1 | // |
|---|
| 2 | // SUProbingUpdateDriver.m |
|---|
| 3 | // Sparkle |
|---|
| 4 | // |
|---|
| 5 | // Created by Andy Matuschak on 5/7/08. |
|---|
| 6 | // Copyright 2008 Andy Matuschak. All rights reserved. |
|---|
| 7 | // |
|---|
| 8 | |
|---|
| 9 | #import "SUProbingUpdateDriver.h" |
|---|
| 10 | #import "SUUpdater.h" |
|---|
| 11 | |
|---|
| 12 | @implementation SUProbingUpdateDriver |
|---|
| 13 | |
|---|
| 14 | // Stop as soon as we have an answer! Since the superclass implementations are not called, we are responsible for notifying the delegate. |
|---|
| 15 | |
|---|
| 16 | - (void)didFindValidUpdate |
|---|
| 17 | { |
|---|
| 18 | if ([[updater delegate] respondsToSelector:@selector(updater:didFindValidUpdate:)]) |
|---|
| 19 | [[updater delegate] updater:updater didFindValidUpdate:updateItem]; |
|---|
| 20 | [self abortUpdate]; |
|---|
| 21 | } |
|---|
| 22 | |
|---|
| 23 | - (void)didNotFindUpdate |
|---|
| 24 | { |
|---|
| 25 | if ([[updater delegate] respondsToSelector:@selector(updaterDidNotFindUpdate:)]) |
|---|
| 26 | [[updater delegate] updaterDidNotFindUpdate:updater]; |
|---|
| 27 | [self abortUpdate]; |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | @end |
|---|
Note: See
TracBrowser
for help on using the repository browser.