]> src.bluestatic.org Git - macgdbp.git/blob - Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.h
Use automatic validation of UI items for the toolbar buttons, rather than manually...
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUStandardVersionComparator.h
1 //
2 // SUStandardVersionComparator.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 SUSTANDARDVERSIONCOMPARATOR_H
10 #define SUSTANDARDVERSIONCOMPARATOR_H
11
12
13 #import "SUVersionComparisonProtocol.h"
14
15 /*!
16 @class
17 @abstract Sparkle's default version comparator.
18 @discussion This comparator is adapted from MacPAD, by Kevin Ballard. It's "dumb" in that it does essentially string comparison, in components split by character type.
19 */
20 @interface SUStandardVersionComparator : NSObject <SUVersionComparison> { }
21
22 /*!
23 @method
24 @abstract Returns a singleton instance of the comparator.
25 */
26 + (SUStandardVersionComparator *)defaultComparator;
27
28 /*!
29 @method
30 @abstract Compares version strings through textual analysis.
31 @discussion See the implementation for more details.
32 */
33 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
34 @end
35
36 #endif