Frameworks/Sparkle.framework/Versions/A/Headers/SUVersionComparisonProtocol.h
author Thijs Alkemade <me@thijsalkema.de>
Sun, 23 Apr 2017 21:05:16 +0200
branchadium-1.5.10.4
changeset 5985 5883c460b8cb
parent 5924 f0f2d246891c
permissions -rw-r--r--
Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
4225
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     1
//
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     2
//  SUVersionComparisonProtocol.h
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     3
//  Sparkle
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     4
//
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     5
//  Created by Andy Matuschak on 12/21/07.
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     6
//  Copyright 2007 Andy Matuschak. All rights reserved.
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     7
//
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     8
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
     9
#ifndef SUVERSIONCOMPARISONPROTOCOL_H
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    10
#define SUVERSIONCOMPARISONPROTOCOL_H
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    11
5985
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    12
#if __has_feature(modules)
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    13
@import Foundation;
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    14
#else
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    15
#import <Foundation/Foundation.h>
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    16
#endif
5924
f0f2d246891c Updated Sparkle to 1.13.1.
Thijs Alkemade <me@thijsalkema.de>
parents: 4418
diff changeset
    17
#import "SUExport.h"
4225
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    18
5985
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    19
NS_ASSUME_NONNULL_BEGIN
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    20
4225
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    21
/*!
5924
f0f2d246891c Updated Sparkle to 1.13.1.
Thijs Alkemade <me@thijsalkema.de>
parents: 4418
diff changeset
    22
    Provides version comparison facilities for Sparkle.
4225
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    23
*/
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    24
@protocol SUVersionComparison
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    25
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    26
/*!
5924
f0f2d246891c Updated Sparkle to 1.13.1.
Thijs Alkemade <me@thijsalkema.de>
parents: 4418
diff changeset
    27
    An abstract method to compare two version strings.
f0f2d246891c Updated Sparkle to 1.13.1.
Thijs Alkemade <me@thijsalkema.de>
parents: 4418
diff changeset
    28
f0f2d246891c Updated Sparkle to 1.13.1.
Thijs Alkemade <me@thijsalkema.de>
parents: 4418
diff changeset
    29
    Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a,
f0f2d246891c Updated Sparkle to 1.13.1.
Thijs Alkemade <me@thijsalkema.de>
parents: 4418
diff changeset
    30
    and NSOrderedSame if they are equivalent.
4225
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    31
*/
5924
f0f2d246891c Updated Sparkle to 1.13.1.
Thijs Alkemade <me@thijsalkema.de>
parents: 4418
diff changeset
    32
- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD!
4225
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    33
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    34
@end
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    35
5985
5883c460b8cb Updated Sparkle to 1.17.0, to fix a problem when copying broken symlinks.
Thijs Alkemade <me@thijsalkema.de>
parents: 5924
diff changeset
    36
NS_ASSUME_NONNULL_END
4225
83cf5cf606e5 It seems I was missing a 'couple' of files...
Thijs Alkemade <thijsalkemade@gmail.com>
parents:
diff changeset
    37
#endif