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 #if __has_feature(modules)
15 #import <Foundation/Foundation.h>
19 NS_ASSUME_NONNULL_BEGIN
22 Provides version comparison facilities for Sparkle.
24 @protocol SUVersionComparison
27 An abstract method to compare two version strings.
29 Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a,
30 and NSOrderedSame if they are equivalent.
32 - (NSComparisonResult
)compareVersion
:(NSString
*)versionA toVersion
:(NSString
*)versionB
; // *** MAY BE CALLED ON NON-MAIN THREAD!