Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (29 sloc) 0.968 kB
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Spark…
andym authored
1 //
2 // SUStandardVersionComparator.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 12/21/07.
6 // Copyright 2007 __MyCompanyName__. All rights reserved.
7 //
8
5aa1e18 Improved headers from Charles D. H. Williams.
andym authored
9 #ifndef SUSTANDARDVERSIONCOMPARATOR_H
10 #define SUSTANDARDVERSIONCOMPARATOR_H
11
12
13 #import "SUVersionComparisonProtocol.h"
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Spark…
andym authored
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
5aa1e18 Improved headers from Charles D. H. Williams.
andym authored
35
87f2893 Fixed warnings for missing newlines at the end of the file.
andym authored
36 #endif
Something went wrong with that request. Please try again.