-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Sparkle.h
58 lines (45 loc) · 1.74 KB
/
Sparkle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Sparkle.h
// Sparkle
//
// Created by Andy Matuschak on 3/16/06. (Modified by CDHW on 23/12/07)
// Copyright 2006 Andy Matuschak. All rights reserved.
//
//
// Prefix header for all source files of the 'Sparkle' target in the 'Sparkle' project.
//
#ifndef SPARKLE_H
#define SPARKLE_H
#define SULocalizedString(key,comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", [NSBundle bundleForClass:[self class]], comment)
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#import "SUConstants.h"
#endif
// Apple recommends using SystemVersion.plist instead of Gestalt() here, don't ask me why.
// This code *should* use NSSearchPathForDirectoriesInDomains(NSCoreServiceDirectory, NSSystemDomainMask, YES)
// but that returns /Library/CoreServices for some reason
// This returns a version string of the form X.Y.Z
#define SUSystemVersionString() [[NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"] objectForKey:@"ProductVersion"]
// This list should include the shared headers. It doesn't matter if some of them aren't shared (unless
// there are name-space collisions) so we can list all of them to start with:
#import "NSBundle+SUAdditions.h"
#import "NSFileManager+Authentication.h"
#import "NSFileManager+Verification.h"
#import "NSString+extras.h"
#import "NSWorkspace_RBAdditions.h"
#import "NTSynchronousTask.h"
#import "RSS.h"
#import "SUAppcast.h"
#import "SUAppcastItem.h"
#import "SUAutomaticUpdateAlert.h"
#import "SUConstants.h"
#import "SUStandardVersionComparator.h"
#import "SUStatusChecker.h"
#import "SUStatusController.h"
#import "SUSystemProfiler.h"
#import "SUUnarchiver.h"
#import "SUUpdateAlert.h"
#import "SUUpdater.h"
#import "SUUserDefaults.h"
#import "SUVersionComparisonProtocol.h"
#endif