get the app working on 10.4 and later, compiling on 10.5

This commit is contained in:
Mitchell Livingston 2007-10-27 22:11:41 +00:00
parent 92ac49d9c4
commit 69df8105a7
3 changed files with 6 additions and 8 deletions

View File

@ -1806,9 +1806,10 @@
GCC_WARN_UNUSED_FUNCTION = NO; GCC_WARN_UNUSED_FUNCTION = NO;
GCC_WARN_UNUSED_VALUE = NO; GCC_WARN_UNUSED_VALUE = NO;
GCC_WARN_UNUSED_VARIABLE = NO; GCC_WARN_UNUSED_VARIABLE = NO;
MACOSX_DEPLOYMENT_TARGET = 10.4;
OTHER_CFLAGS = "$(inherited)"; OTHER_CFLAGS = "$(inherited)";
PREBINDING = NO; PREBINDING = NO;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk"; SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
}; };
name = Development; name = Development;
}; };
@ -1858,8 +1859,9 @@
DEBUG_INFORMATION_FORMAT = dwarf; DEBUG_INFORMATION_FORMAT = dwarf;
GCC_ENABLE_OBJC_EXCEPTIONS = YES; GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_GENERATE_DEBUGGING_SYMBOLS = NO; GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
MACOSX_DEPLOYMENT_TARGET = 10.4;
PREBINDING = NO; PREBINDING = NO;
SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk"; SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
}; };
name = Release; name = Release;
}; };

View File

@ -181,8 +181,8 @@ typedef enum
{ {
if (numberSelected > 0) if (numberSelected > 0)
{ {
[fImageView setImage: [NSImage imageNamed: /*[NSApp isOnLeopardOrBetter] [fImageView setImage: [NSImage imageNamed: [NSApp isOnLeopardOrBetter]
? NSImageNameMultipleDocuments :*/ @"NSApplicationIcon"]]; ? NSImageNameMultipleDocuments : @"NSApplicationIcon"]];
[fNameField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d Torrents Selected", [fNameField setStringValue: [NSString stringWithFormat: NSLocalizedString(@"%d Torrents Selected",
"Inspector -> above tabs -> selected torrents"), numberSelected]]; "Inspector -> above tabs -> selected torrents"), numberSelected]];

View File

@ -24,10 +24,6 @@
#import "NSApplicationAdditions.h" #import "NSApplicationAdditions.h"
#ifndef NSAppKitVersionNumber10_4
#define NSAppKitVersionNumber10_4 824
#endif
@implementation NSApplication (NSApplicationAdditions) @implementation NSApplication (NSApplicationAdditions)
- (BOOL) isOnLeopardOrBetter - (BOOL) isOnLeopardOrBetter