Permalink
Browse files

Improved headers from Charles D. H. Williams.

  • Loading branch information...
1 parent c3b27a8 commit 5aa1e18bc54f40e8f16b8a22e897301e10c3ab73 andym committed Dec 25, 2007
View
@@ -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
View
@@ -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>
View
@@ -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
View
@@ -40,6 +40,7 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
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>
View
@@ -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
View
@@ -6,6 +6,7 @@
// Copyright 2005 __MyCompanyName__. All rights reserved.
//
+#import "Sparkle.h"
#import "NTSynchronousTask.h"
@interface NTSynchronousTask (Private)
View
6 RSS.h
@@ -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
View
1 RSS.m
@@ -40,6 +40,7 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
*/
+#import "Sparkle.h"
#import "RSS.h"
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_4
View
@@ -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
View
@@ -6,8 +6,8 @@
// Copyright 2006 Andy Matuschak. All rights reserved.
//
+#import "Sparkle.h"
#import "SUAppcast.h"
-#import "RSS.h"
@implementation SUAppcast
View
@@ -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
View
@@ -6,6 +6,7 @@
// Copyright 2006 Andy Matuschak. All rights reserved.
//
+#import "Sparkle.h"
#import "SUAppcastItem.h"
@implementation SUAppcastItem
View
@@ -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
View
@@ -6,6 +6,7 @@
// Copyright 2006 Andy Matuschak. All rights reserved.
//
+#import "Sparkle.h"
#import "SUAutomaticUpdateAlert.h"
@implementation SUAutomaticUpdateAlert
View
@@ -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
View
@@ -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
View
@@ -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
View
@@ -5,6 +5,7 @@
// Created by Evan Schoenberg on 7/6/06.
//
+#import "Sparkle.h"
#import "SUStatusChecker.h"
@interface SUStatusChecker (Private)
View
@@ -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
View
@@ -6,6 +6,7 @@
// Copyright 2006 Andy Matuschak. All rights reserved.
//
+#import "Sparkle.h"
#import "SUStatusController.h"
@implementation SUStatusController
View
@@ -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
Oops, something went wrong.

0 comments on commit 5aa1e18

Please sign in to comment.