2 // SUVersionComparisonProtocol.h
5 // Created by Andy Matuschak on 12/21/07.
6 // Copyright 2007 Andy Matuschak. All rights reserved.
9 #ifndef SUVERSIONCOMPARISONPROTOCOL_H
10 #define SUVERSIONCOMPARISONPROTOCOL_H
14 @abstract Implement this protocol to provide version comparison facilities for Sparkle.
16 @protocol SUVersionComparison
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.
23 - (NSComparisonResult
)compareVersion
:(NSString
*)versionA toVersion
:(NSString
*)versionB
;