Skip to content

Commit

Permalink
Merged in fixes to some Tiger warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
andymatuschak committed Jul 1, 2008
2 parents 68c2e6a + fbcdba4 commit 9e4b74f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions NSBundle+SUAdditions.h
Expand Up @@ -9,6 +9,8 @@
#ifndef NSBUNDLE_PLUS_ADDITIONS_H
#define NSBUNDLE_PLUS_ADDITIONS_H

#import <Cocoa/Cocoa.h>

@interface NSBundle (SUAdditions)
/*!
@method
Expand Down
4 changes: 4 additions & 0 deletions NSBundle+SUAdditions.m
Expand Up @@ -9,6 +9,10 @@
#import "Sparkle.h"
#import "NSBundle+SUAdditions.h"

#ifndef NSAppKitVersionNumber10_4
#define NSAppKitVersionNumber10_4 824
#endif

@implementation NSBundle (SUAdditions)

- (NSString *)name
Expand Down
3 changes: 2 additions & 1 deletion NSFileManager+Authentication.m
Expand Up @@ -82,7 +82,8 @@ - (NSString *)_temporaryCopyNameForPath:(NSString *)path
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]];
}
Expand Down
4 changes: 2 additions & 2 deletions Test Application/Test Application-Info.plist
@@ -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>
Expand All @@ -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>
Expand Down
2 changes: 2 additions & 0 deletions relaunch.m
@@ -1,6 +1,8 @@

#import <AppKit/AppKit.h>

#include <unistd.h>

@interface TerminationListener : NSObject
{
const char *executablePath;
Expand Down

0 comments on commit 9e4b74f

Please sign in to comment.