Skip to content

Commit

Permalink
Updated to build on Mac OS X 10.7 with Xcode 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 2, 2014
1 parent 5eccbac commit 0f9bb0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README-macosx.txt
Expand Up @@ -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
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
target back to 10.5 systems). PowerPC support for Mac OS X has been officially
dropped as of SDL 2.0.2.
Please note that building SDL requires at least Xcode 4.6 and the 10.7 SDK
(even if you target back to 10.5 systems). PowerPC support for Mac OS X has
been officially dropped as of SDL 2.0.2.

To use the library once it's built, you essential have two possibilities:
use the traditional autoconf/automake/make method, or use Xcode.
Expand Down
7 changes: 3 additions & 4 deletions src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -271,10 +271,9 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam
CreateApplicationMenus();
}
[NSApp finishLaunching];
NSDictionary *appDefaults = @{
@"AppleMomentumScrollSupported": @NO,
@"ApplePressAndHoldEnabled": @NO,
};
NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
NO, @"AppleMomentumScrollSupported",
NO, @"ApplePressAndHoldEnabled"];
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];

}
Expand Down

0 comments on commit 0f9bb0c

Please sign in to comment.