Updated to build on Mac OS X 10.7 with Xcode 4.6
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Mar 2014 12:58:00 -0800
changeset 8289d2acd700f8f7
parent 8288 4e3afa79b8d8
child 8290 b64c52d62264
Updated to build on Mac OS X 10.7 with Xcode 4.6
README-macosx.txt
src/video/cocoa/SDL_cocoaevents.m
     1.1 --- a/README-macosx.txt	Sun Mar 02 15:35:24 2014 -0500
     1.2 +++ b/README-macosx.txt	Sun Mar 02 12:58:00 2014 -0800
     1.3 @@ -26,9 +26,9 @@
     1.4  should compile your application the same way.  A script which wraps
     1.5  gcc to make this easy is provided in test/gcc-fat.sh
     1.6  
     1.7 -Please note that building SDL requires at least the 10.7 SDK (even if you
     1.8 -target back to 10.5 systems). PowerPC support for Mac OS X has been officially
     1.9 -dropped as of SDL 2.0.2.
    1.10 +Please note that building SDL requires at least Xcode 4.6 and the 10.7 SDK
    1.11 +(even if you target back to 10.5 systems). PowerPC support for Mac OS X has
    1.12 +been officially dropped as of SDL 2.0.2.
    1.13  
    1.14  To use the library once it's built, you essential have two possibilities:
    1.15  use the traditional autoconf/automake/make method, or use Xcode.
     2.1 --- a/src/video/cocoa/SDL_cocoaevents.m	Sun Mar 02 15:35:24 2014 -0500
     2.2 +++ b/src/video/cocoa/SDL_cocoaevents.m	Sun Mar 02 12:58:00 2014 -0800
     2.3 @@ -271,10 +271,9 @@
     2.4              CreateApplicationMenus();
     2.5          }
     2.6          [NSApp finishLaunching];
     2.7 -        NSDictionary *appDefaults = @{
     2.8 -            @"AppleMomentumScrollSupported": @NO,
     2.9 -            @"ApplePressAndHoldEnabled": @NO,
    2.10 -        };
    2.11 +        NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
    2.12 +            NO, @"AppleMomentumScrollSupported",
    2.13 +            NO, @"ApplePressAndHoldEnabled"];
    2.14          [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
    2.15  
    2.16      }