Merged in fixes to some Tiger warnings.

This commit is contained in:
Andy Matuschak committed 2008-06-30 20:13:43 -07:00
commit 9e4b74ff24
5 files changed
+12 -3

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 -2
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
@@ -25,7 +25,7 @@
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>SUFeedURL</key>
<string>http://www.andymatuschak.org/files/sparkletestcast.xml</string>
<string>http://www.andymatuschfsfjak.org/files/sparkletestcast.xml</string>
<key>SUEnableSystemProfiling</key>
<true/>
</dict>
+2
View File
@@ -1,6 +1,8 @@
#import <AppKit/AppKit.h>
#include <unistd.h>
@interface TerminationListener : NSObject
{
const char *executablePath;