source: trunk/macosx/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h @ 6529

Last change on this file since 6529 was 6529, checked in by livings124, 13 years ago

initial Sparkle 1.5 b5 commit

File size: 705 bytes
Line 
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/*!
13    @protocol
14    @abstract    Implement this protocol to provide version comparison facilities for Sparkle.
15*/
16@protocol SUVersionComparison
17
18/*!
19    @method     
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.
22*/
23- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
24
25@end
26
27#endif
Note: See TracBrowser for help on using the repository browser.