Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (23 sloc) 0.771 kB
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Spark…
andym authored
1 //
2 // SUVersionComparisonProtocol.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 12/21/07.
a7148d9 Numerous minor changes courtesy Sean McBride. Mostly clarifications.
andym authored
6 // Copyright 2007 Andy Matuschak. All rights reserved.
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Spark…
andym authored
7 //
8
5aa1e18 Improved headers from Charles D. H. Williams.
andym authored
9 #ifndef SUVERSIONCOMPARISONPROTOCOL_H
10 #define SUVERSIONCOMPARISONPROTOCOL_H
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Spark…
andym authored
11
43a0a7d @uliwitness Merge of changes from SVN repository:
uliwitness authored
12 #import <Cocoa/Cocoa.h>
13
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Spark…
andym authored
14 /*!
15 @protocol
16 @abstract Implement this protocol to provide version comparison facilities for Sparkle.
17 */
18 @protocol SUVersionComparison
19
20 /*!
21 @method
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.
24 */
43a0a7d @uliwitness Merge of changes from SVN repository:
uliwitness authored
25 - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD!
63011aa Beware of falling bricks! Huge refactoring commit #1: cleansing Spark…
andym authored
26
27 @end
5aa1e18 Improved headers from Charles D. H. Williams.
andym authored
28
87f2893 Fixed warnings for missing newlines at the end of the file.
andym authored
29 #endif
Something went wrong with that request. Please try again.