Fixed dictionary initialization
authorSam Lantinga <slouken@libsdl.org>
Sun, 02 Mar 2014 13:06:51 -0800
changeset 8290b64c52d62264
parent 8289 d2acd700f8f7
child 8291 36f8cf82d308
Fixed dictionary initialization
src/video/cocoa/SDL_cocoaevents.m
     1.1 --- a/src/video/cocoa/SDL_cocoaevents.m	Sun Mar 02 12:58:00 2014 -0800
     1.2 +++ b/src/video/cocoa/SDL_cocoaevents.m	Sun Mar 02 13:06:51 2014 -0800
     1.3 @@ -272,8 +272,9 @@
     1.4          }
     1.5          [NSApp finishLaunching];
     1.6          NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
     1.7 -            NO, @"AppleMomentumScrollSupported",
     1.8 -            NO, @"ApplePressAndHoldEnabled"];
     1.9 +            [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
    1.10 +            [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
    1.11 +            nil];
    1.12          [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
    1.13  
    1.14      }