Upgrade to Sparkle 1.21.3.
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUVersionComparisonProtocol.h
1 //
2 // SUVersionComparisonProtocol.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 12/21/07.
6 // Copyright 2007 Andy Matuschak. All rights reserved.
7 //
8
9 #ifndef SUVERSIONCOMPARISONPROTOCOL_H
10 #define SUVERSIONCOMPARISONPROTOCOL_H
11
12 #if __has_feature(modules)
13 @import Foundation;
14 #else
15 #import <Foundation/Foundation.h>
16 #endif
17 #import "SUExport.h"
18
19 NS_ASSUME_NONNULL_BEGIN
20
21 /*!
22 Provides version comparison facilities for Sparkle.
23 */
24 @protocol SUVersionComparison
25
26 /*!
27 An abstract method to compare two version strings.
28
29 Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a,
30 and NSOrderedSame if they are equivalent.
31 */
32 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD!
33
34 @end
35
36 NS_ASSUME_NONNULL_END
37 #endif