Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (27 sloc) 0.906 kb
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Sparkle ...
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
9 #import <Cocoa/Cocoa.h>
10 #import "SUVersionComparisonProtocol.h"
11
12 /*!
13 @class
14 @abstract Sparkle's default version comparator.
15 @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.
16 */
17 @interface SUStandardVersionComparator : NSObject <SUVersionComparison> { }
18
19 /*!
20 @method
21 @abstract Returns a singleton instance of the comparator.
22 */
23 + (SUStandardVersionComparator *)defaultComparator;
24
25 /*!
26 @method
27 @abstract Compares version strings through textual analysis.
28 @discussion See the implementation for more details.
29 */
30 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
31 @end
Something went wrong with that request. Please try again.