mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Improved headers from Charles D. H. Williams.
This commit is contained in:
1 parent
c3b27a8afd
commit
5aa1e18bc5
43 files changed
+169
-58
No files matched your search
@@ -6,7 +6,8 @@
|
||||
// Copyright 2007 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#ifndef NSBUNDLE_PLUS_ADDITIONS_H
|
||||
#define NSBUNDLE_PLUS_ADDITIONS_H
|
||||
|
||||
@interface NSBundle (SUAdditions)
|
||||
/*!
|
||||
@@ -43,3 +44,5 @@
|
||||
*/
|
||||
- (BOOL)isRunningFromDiskImage;
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,8 +6,8 @@
|
||||
// Copyright 2007 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "NSBundle+SUAdditions.h"
|
||||
#import "NSWorkspace_RBAdditions.h"
|
||||
|
||||
@implementation NSBundle (SUAdditions)
|
||||
|
||||
|
||||
@@ -6,8 +6,11 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef NSFILEMANAGER_PLUS_AUTHENTICATION_H
|
||||
#define NSFILEMANAGER_PLUS_AUTHENTICATION_H
|
||||
|
||||
@interface NSFileManager (SUAuthenticationAdditions)
|
||||
- (BOOL)copyPath:(NSString *)src overPath:(NSString *)dst withAuthentication:(BOOL)useAuthentication;
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
// This code based on generous contribution from Allan Odgaard. Thanks, Allan!
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "NSFileManager+Authentication.h"
|
||||
|
||||
#import <Security/Security.h>
|
||||
|
||||
@@ -6,9 +6,12 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#ifndef NSFILEMANAGER_PLUS_VERIFICATION_H
|
||||
#define NSFILEMANAGER_PLUS_VERIFICATION_H
|
||||
|
||||
// For the paranoid folks!
|
||||
@interface NSFileManager (SUVerification)
|
||||
- (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString;
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
// DSA stuff adapted from code provided by Allan Odgaard. Thanks, Allan!
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "NSFileManager+Verification.h"
|
||||
|
||||
#import <stdio.h>
|
||||
|
||||
@@ -31,6 +31,9 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef NSSTRING_PLUS_EXTRAS_H
|
||||
#define NSSTRING_PLUS_EXTRAS_H
|
||||
|
||||
|
||||
/*
|
||||
NSString+extras.h
|
||||
@@ -59,3 +62,5 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA
|
||||
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -40,6 +40,7 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA
|
||||
Copyright (c) 2002 Brent Simmons. All rights reserved.
|
||||
*/
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "NSString+extras.h"
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
// Copyright 2007 Rainer Brockerhoff. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#ifndef NSWORKSPACE_RBADDITIONS_H
|
||||
#define NSWORKSPACE_RBADDITIONS_H
|
||||
|
||||
|
||||
extern NSString* NSWorkspace_RBfstypename;
|
||||
extern NSString* NSWorkspace_RBmntonname;
|
||||
@@ -35,3 +37,5 @@ extern NSString* NSWorkspace_RBserverURL;
|
||||
- (NSDictionary*)propertiesForPath:(NSString*)path;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,7 +6,9 @@
|
||||
// Copyright 2007 Rainer Brockerhoff. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "NSWorkspace_RBAdditions.h"
|
||||
|
||||
#include <IOKit/IOKitLib.h>
|
||||
#include <sys/mount.h>
|
||||
#include <mach/mach.h>
|
||||
|
||||
+4
-1
@@ -6,7 +6,8 @@
|
||||
// Copyright 2005 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#ifndef NTSYNCHRONOUSTASK_H
|
||||
#define NTSYNCHRONOUSTASK_H
|
||||
|
||||
@interface NTSynchronousTask : NSObject
|
||||
{
|
||||
@@ -24,3 +25,5 @@
|
||||
+ (NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
// Copyright 2005 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "NTSynchronousTask.h"
|
||||
|
||||
@interface NTSynchronousTask (Private)
|
||||
|
||||
@@ -31,6 +31,10 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA
|
||||
|
||||
*/
|
||||
|
||||
#ifndef RSS_H
|
||||
#define RSS_H
|
||||
|
||||
|
||||
/*
|
||||
RSS.h
|
||||
A class for reading RSS feeds.
|
||||
@@ -96,3 +100,5 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA
|
||||
- (NSString *) getelementvalue: (CFXMLTreeRef) tree;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -40,6 +40,7 @@ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMA
|
||||
*/
|
||||
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "RSS.h"
|
||||
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4
|
||||
|
||||
+4
-1
@@ -6,7 +6,8 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUAPPCAST_H
|
||||
#define SUAPPCAST_H
|
||||
|
||||
@class RSS, SUAppcastItem;
|
||||
@interface SUAppcast : NSObject {
|
||||
@@ -27,3 +28,5 @@
|
||||
- (void)appcastDidFailToLoad:(SUAppcast *)appcast;
|
||||
- (NSString *)userAgentForAppcast:(SUAppcast *)appcast;
|
||||
@end
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -6,8 +6,8 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUAppcast.h"
|
||||
#import "RSS.h"
|
||||
|
||||
@implementation SUAppcast
|
||||
|
||||
|
||||
+5
-1
@@ -6,7 +6,9 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUAPPCASTITEM_H
|
||||
#define SUAPPCASTITEM_H
|
||||
|
||||
|
||||
@interface SUAppcastItem : NSObject {
|
||||
NSString *title;
|
||||
@@ -59,3 +61,5 @@
|
||||
- (void)setMinimumSystemVersion:(NSString *)systemVersionString;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUAppcastItem.h"
|
||||
|
||||
@implementation SUAppcastItem
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUAUTOMATICUPDATEALERT_H
|
||||
#define SUAUTOMATICUPDATEALERT_H
|
||||
|
||||
@class SUAppcastItem;
|
||||
@interface SUAutomaticUpdateAlert : NSWindowController {
|
||||
@@ -20,3 +21,5 @@
|
||||
- (IBAction)relaunchLater:sender;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUAutomaticUpdateAlert.h"
|
||||
|
||||
@implementation SUAutomaticUpdateAlert
|
||||
|
||||
+19
-11
@@ -6,6 +6,11 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
#ifndef SUCONSTANTS_H
|
||||
#define SUCONSTANTS_H
|
||||
|
||||
|
||||
extern NSString *SUUpdaterWillRestartNotification;
|
||||
|
||||
extern NSString *SUFeedURLKey;
|
||||
@@ -23,15 +28,18 @@ extern NSString *SUEnableAutomaticChecksKey;
|
||||
// NSInteger is a type that was added to Leopard.
|
||||
// Here is some glue to ensure that NSInteger will work with pre-10.5 SDKs:
|
||||
#ifndef NSINTEGER_DEFINED
|
||||
#ifdef NS_BUILD_32_LIKE_64
|
||||
typedef long NSInteger;
|
||||
typedef unsigned long NSUInteger;
|
||||
#else
|
||||
typedef int NSInteger;
|
||||
typedef unsigned int NSUInteger;
|
||||
#endif
|
||||
#define NSIntegerMax LONG_MAX
|
||||
#define NSIntegerMin LONG_MIN
|
||||
#define NSUIntegerMax ULONG_MAX
|
||||
#define NSINTEGER_DEFINED 1
|
||||
#ifdef NS_BUILD_32_LIKE_64
|
||||
typedef long NSInteger;
|
||||
typedef unsigned long NSUInteger;
|
||||
#else
|
||||
typedef int NSInteger;
|
||||
typedef unsigned int NSUInteger;
|
||||
#endif
|
||||
#define NSIntegerMax LONG_MAX
|
||||
#define NSIntegerMin LONG_MIN
|
||||
#define NSUIntegerMax ULONG_MAX
|
||||
#define NSINTEGER_DEFINED 1
|
||||
#endif
|
||||
|
||||
|
||||
#endif
|
||||
+2
-1
@@ -6,7 +6,8 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#import "Sparkle.h"
|
||||
#import "SUConstants.h"
|
||||
|
||||
NSString *SUUpdaterWillRestartNotification = @"SUUpdaterWillRestartNotificationName";
|
||||
|
||||
|
||||
@@ -6,7 +6,11 @@
|
||||
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUSTANDARDVERSIONCOMPARATOR_H
|
||||
#define SUSTANDARDVERSIONCOMPARATOR_H
|
||||
|
||||
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
|
||||
/*!
|
||||
@class
|
||||
@@ -28,3 +32,5 @@
|
||||
*/
|
||||
- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUStandardVersionComparator.h"
|
||||
|
||||
@implementation SUStandardVersionComparator
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
// Created by Evan Schoenberg on 7/6/06.
|
||||
//
|
||||
|
||||
#ifndef SUSTATUSCHECKER_H
|
||||
#define SUSTATUSCHECKER_H
|
||||
|
||||
#import "SUUpdater.h"
|
||||
|
||||
@class SUStatusChecker;
|
||||
@@ -23,3 +26,5 @@
|
||||
+ (SUStatusChecker *)statusCheckerForDelegate:(id<SUStatusCheckerDelegate>)delegate;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -5,6 +5,7 @@
|
||||
// Created by Evan Schoenberg on 7/6/06.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUStatusChecker.h"
|
||||
|
||||
@interface SUStatusChecker (Private)
|
||||
|
||||
@@ -6,7 +6,9 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUSTATUSCONTROLLER_H
|
||||
#define SUSTATUSCONTROLLER_H
|
||||
|
||||
|
||||
@interface SUStatusController : NSWindowController {
|
||||
double progressValue, maxProgressValue;
|
||||
@@ -34,3 +36,5 @@
|
||||
- (void)setStatusText:(NSString *)statusText;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,6 +6,7 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUStatusController.h"
|
||||
|
||||
@implementation SUStatusController
|
||||
|
||||
+4
-1
@@ -6,8 +6,11 @@
|
||||
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUSYSTEMPROFILER_H
|
||||
#define SUSYSTEMPROFILER_H
|
||||
|
||||
@interface SUSystemProfiler : NSObject {}
|
||||
+ (NSURL *)profiledURLForAppcastURL:(NSURL *)appcastURL hostBundle:(NSBundle *)hostBundle;
|
||||
@end
|
||||
|
||||
#endif
|
||||
+2
-1
@@ -6,8 +6,9 @@
|
||||
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUSystemProfiler.h"
|
||||
#import "NSBundle+SUAdditions.h"
|
||||
|
||||
#import <sys/sysctl.h>
|
||||
|
||||
@implementation SUSystemProfiler
|
||||
|
||||
+4
-1
@@ -6,7 +6,8 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUUNARCHIVER_H
|
||||
#define SUUNARCHIVER_H
|
||||
|
||||
@interface SUUnarchiver : NSObject {
|
||||
id delegate;
|
||||
@@ -22,3 +23,5 @@
|
||||
- (void)unarchiverDidFinish:(SUUnarchiver *)unarchiver;
|
||||
- (void)unarchiverDidFail:(SUUnarchiver *)unarchiver;
|
||||
@end
|
||||
|
||||
#endif
|
||||
+2
-2
@@ -6,9 +6,9 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUUnarchiver.h"
|
||||
#import <Carbon/Carbon.h>
|
||||
#import "NTSynchronousTask.h"
|
||||
|
||||
@implementation SUUnarchiver
|
||||
|
||||
|
||||
+4
-1
@@ -6,7 +6,8 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#ifndef SUUPDATEALERT_H
|
||||
#define SUUPDATEALERT_H
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -39,3 +40,5 @@ typedef enum
|
||||
@interface NSObject (SUUpdateAlertDelegate)
|
||||
- (void)updateAlert:(SUUpdateAlert *)updateAlert finishedWithChoice:(SUUpdateAlertChoice)updateChoice;
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -6,7 +6,9 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUUpdateAlert.h"
|
||||
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@implementation SUUpdateAlert
|
||||
|
||||
@@ -6,8 +6,12 @@
|
||||
// Copyright 2006 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUUpdater.h"
|
||||
#import "sys/stat.h"
|
||||
|
||||
#import <sys/types.h>
|
||||
#import <sys/wait.h>
|
||||
#import <sys/stat.h">
|
||||
#import <Security/Security.h>
|
||||
|
||||
@implementation SUUpdater (SUAuthenticationAdditions)
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
|
||||
// Thanks to Allan Odgaard for this code!
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUUpdater.h"
|
||||
|
||||
#import <stdio.h>
|
||||
#import <openssl/evp.h>
|
||||
#import <openssl/bio.h>
|
||||
|
||||
+8
-8
@@ -6,7 +6,8 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#ifndef SUUPDATER_H
|
||||
#define SUUPDATER_H
|
||||
|
||||
// Before you use Sparkle in your app, you must set SUFeedURL in Info.plist to the
|
||||
// address of the appcast on your webserver. If you don't already have an
|
||||
@@ -53,18 +54,17 @@
|
||||
|
||||
@end
|
||||
|
||||
#import "Sparkle.h"
|
||||
|
||||
|
||||
// Define some minimum intervals to avoid DOS-like checking attacks. These are in seconds.
|
||||
#ifdef DEBUG
|
||||
#define SU_MIN_CHECK_INTERVAL 60
|
||||
#define SU_MIN_CHECK_INTERVAL 60
|
||||
#else
|
||||
#define SU_MIN_CHECK_INTERVAL 60*60
|
||||
#define SU_MIN_CHECK_INTERVAL 60*60
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#define SU_DEFAULT_CHECK_INTERVAL 60
|
||||
#define SU_DEFAULT_CHECK_INTERVAL 60
|
||||
#else
|
||||
#define SU_DEFAULT_CHECK_INTERVAL 60*60*24
|
||||
#define SU_DEFAULT_CHECK_INTERVAL 60*60*24
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -6,7 +6,9 @@
|
||||
// Copyright 2006 Andy Matuschak. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUUpdater.h"
|
||||
|
||||
#import <stdio.h>
|
||||
#import <sys/stat.h>
|
||||
#import <unistd.h>
|
||||
|
||||
+4
-1
@@ -6,7 +6,8 @@
|
||||
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#ifndef SUUSERDEFAULTS_H
|
||||
#define SUUSERDEFAULTS_H
|
||||
|
||||
/*!
|
||||
@class
|
||||
@@ -36,3 +37,5 @@
|
||||
- (BOOL)boolForKey:(NSString *)defaultName;
|
||||
- (void)setBool:(BOOL)value forKey:(NSString *)defaultName;
|
||||
@end
|
||||
|
||||
#endif
|
||||
+1
-1
@@ -6,9 +6,9 @@
|
||||
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import "SUUserDefaults.h"
|
||||
|
||||
|
||||
@implementation SUUserDefaults
|
||||
|
||||
+ (SUUserDefaults *)standardUserDefaults
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#ifndef SUVERSIONCOMPARISONPROTOCOL_H
|
||||
#define SUVERSIONCOMPARISONPROTOCOL_H
|
||||
|
||||
/*!
|
||||
@protocol
|
||||
@@ -22,3 +23,5 @@
|
||||
- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
@@ -2,15 +2,17 @@
|
||||
// Sparkle.h
|
||||
// Sparkle
|
||||
//
|
||||
// Created by Andy Matuschak on 3/16/06.
|
||||
// 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__
|
||||
@@ -24,24 +26,33 @@
|
||||
// This returns a version string of the form X.Y.Z
|
||||
#define SUSystemVersionString() [[NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"] objectForKey:@"ProductVersion"]
|
||||
|
||||
#import "SUUpdater.h"
|
||||
#import "SUConstants.h"
|
||||
#import "SUAppcast.h"
|
||||
#import "SUAppcastItem.h"
|
||||
#import "SUUpdateAlert.h"
|
||||
#import "SUAutomaticUpdateAlert.h"
|
||||
#import "SUStatusController.h"
|
||||
#import "SUUnarchiver.h"
|
||||
#import "SUStatusChecker.h"
|
||||
#import "SUUserDefaults.h"
|
||||
#import "SUVersionComparisonProtocol.h"
|
||||
#import "SUStandardVersionComparator.h"
|
||||
|
||||
// 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 "NSBundle+SUAdditions.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"
|
||||
|
||||
#else
|
||||
/* Sparkle.h included more than once */
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// gcc -Wall -arch i386 -arch ppc -Os -s -framework AppKit -o relaunch relaunch.m
|
||||
|
||||
#import "Sparkle.h"
|
||||
#import <AppKit/AppKit.h>
|
||||
#import <unistd.h>
|
||||
|
||||
|
||||
Reference in new issue
Block a user