From http://www.jwz.org/xscreensaver/xscreensaver-5.24.tar.gz
[xscreensaver] / OSX / Sparkle.framework / Versions / A / Headers / SUVersionComparisonProtocol.h
1 //
2 //  SUVersionComparisonProtocol.h
3 //  Sparkle
4 //
5 //  Created by Andy Matuschak on 12/21/07.
6 //  Copyright 2007 Andy Matuschak. All rights reserved.
7 //
8
9 #ifndef SUVERSIONCOMPARISONPROTOCOL_H
10 #define SUVERSIONCOMPARISONPROTOCOL_H
11
12 #import <Cocoa/Cocoa.h>
13
14 /*!
15     @protocol
16     @abstract    Implement this protocol to provide version comparison facilities for Sparkle.
17 */
18 @protocol SUVersionComparison
19
20 /*!
21     @method     
22     @abstract   An abstract method to compare two version strings.
23     @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent.
24 */
25 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;       // *** MAY BE CALLED ON NON-MAIN THREAD!
26
27 @end
28
29 #endif