]> src.bluestatic.org Git - macgdbp.git/blob - Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h
Use automatic validation of UI items for the toolbar buttons, rather than manually...
[macgdbp.git] / 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 /*!
13 @protocol
14 @abstract Implement this protocol to provide version comparison facilities for Sparkle.
15 */
16 @protocol SUVersionComparison
17
18 /*!
19 @method
20 @abstract An abstract method to compare two version strings.
21 @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent.
22 */
23 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
24
25 @end
26
27 #endif