mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Made a first crack at redifining the SUUpdater delegate protocol. Still not sure about a couple things, so please don't change your delegate methods to conform until this gets merged into trunk. Also made the SUUpdateDrivers not have the updater's delegate as their delegate (that was really icky). Now they're just coupled with the SUUpdater, which is icky as well, but less icky, at least.
27 lines
610 B
Objective-C
27 lines
610 B
Objective-C
//
|
|
// SUUpdateDriver.m
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 5/7/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#import "SUUpdateDriver.h"
|
|
|
|
NSString *SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished";
|
|
|
|
@implementation SUUpdateDriver
|
|
- (void)checkForUpdatesAtURL:(NSURL *)appcastURL host:(SUHost *)h
|
|
{
|
|
host = [h retain];
|
|
}
|
|
|
|
- (void)abortUpdate
|
|
{
|
|
[self setValue:[NSNumber numberWithBool:YES] forKey:@"finished"];
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:SUUpdateDriverFinishedNotification object:self];
|
|
}
|
|
|
|
- (BOOL)finished { return finished; }
|
|
@end
|