Updated to build on Mac OS X 10.7 with Xcode 4.6

main
Sam Lantinga 2014-03-02 12:58:00 -08:00
parent 5eccbac4b9
commit 0f9bb0cda6
2 changed files with 6 additions and 7 deletions

View File

@ -26,9 +26,9 @@ ABI compatibility on x86_64 architectures. For best compatibility you
should compile your application the same way. A script which wraps should compile your application the same way. A script which wraps
gcc to make this easy is provided in test/gcc-fat.sh gcc to make this easy is provided in test/gcc-fat.sh
Please note that building SDL requires at least the 10.7 SDK (even if you Please note that building SDL requires at least Xcode 4.6 and the 10.7 SDK
target back to 10.5 systems). PowerPC support for Mac OS X has been officially (even if you target back to 10.5 systems). PowerPC support for Mac OS X has
dropped as of SDL 2.0.2. been officially dropped as of SDL 2.0.2.
To use the library once it's built, you essential have two possibilities: To use the library once it's built, you essential have two possibilities:
use the traditional autoconf/automake/make method, or use Xcode. use the traditional autoconf/automake/make method, or use Xcode.

View File

@ -271,10 +271,9 @@ Cocoa_RegisterApp(void)
CreateApplicationMenus(); CreateApplicationMenus();
} }
[NSApp finishLaunching]; [NSApp finishLaunching];
NSDictionary *appDefaults = @{ NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
@"AppleMomentumScrollSupported": @NO, NO, @"AppleMomentumScrollSupported",
@"ApplePressAndHoldEnabled": @NO, NO, @"ApplePressAndHoldEnabled"];
};
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults]; [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
} }