Fixes several warnings

This commit is contained in:
Stuart Morgan committed 2008-06-07 10:53:00 -07:00
1 parent 17a5bf2b96
commit fbcdba4f01
4 files changed
+10 -1

No files matched your search

+2
View File
@@ -9,6 +9,8 @@
#ifndef NSBUNDLE_PLUS_ADDITIONS_H
#define NSBUNDLE_PLUS_ADDITIONS_H
#import <Cocoa/Cocoa.h>
@interface NSBundle (SUAdditions)
/*!
@method
+4
View File
@@ -9,6 +9,10 @@
#import "Sparkle.h"
#import "NSBundle+SUAdditions.h"
#ifndef NSAppKitVersionNumber10_4
#define NSAppKitVersionNumber10_4 824
#endif
@implementation NSBundle (SUAdditions)
- (NSString *)name
+2 -1
View File
@@ -82,7 +82,8 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
if ((bundle = [NSBundle bundleWithPath:path]))
{
// We'll clean it up a little for safety.
NSMutableCharacterSet *validCharacters = [NSMutableCharacterSet alphanumericCharacterSet];
// The cast is necessary because of a bug in the headers in pre-10.5 SDKs
NSMutableCharacterSet *validCharacters = (id)[NSMutableCharacterSet alphanumericCharacterSet];
[validCharacters formUnionWithCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@".-()"]];
postFix = [[bundle objectForInfoDictionaryKey:@"CFBundleVersion"] stringByTrimmingCharactersInSet:[validCharacters invertedSet]];
}
+2
View File
@@ -1,6 +1,8 @@
#import <AppKit/AppKit.h>
#include <unistd.h>
@interface TerminationListener : NSObject
{
const char *executablePath;