2 // SUStandardVersionComparator.h
5 // Created by Andy Matuschak on 12/21/07.
6 // Copyright 2007 Andy Matuschak. All rights reserved.
9 #ifndef SUSTANDARDVERSIONCOMPARATOR_H
10 #define SUSTANDARDVERSIONCOMPARATOR_H
13 #import "SUVersionComparisonProtocol.h"
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.
20 @interface SUStandardVersionComparator
: NSObject
<SUVersionComparison
> { }
24 @abstract Returns a singleton instance of the comparator.
26 + (SUStandardVersionComparator
*)defaultComparator
;
30 @abstract Compares version strings through textual analysis.
31 @discussion See the implementation for more details.
33 - (NSComparisonResult
)compareVersion
:(NSString
*)versionA toVersion
:(NSString
*)versionB
;