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
12 #import <Cocoa/Cocoa.h>
16 @abstract Implement this protocol to provide version comparison facilities for Sparkle.
18 @protocol SUVersionComparison
22 @abstract An abstract method to compare two version strings.
23 @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent.
25 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD!