From da324233e2f830079524e9d5763cba7767da860f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 2 Mar 2014 13:06:51 -0800 Subject: [PATCH] Fixed dictionary initialization --- src/video/cocoa/SDL_cocoaevents.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m index d1dab03b35278..438385c37da67 100644 --- a/src/video/cocoa/SDL_cocoaevents.m +++ b/src/video/cocoa/SDL_cocoaevents.m @@ -272,8 +272,9 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam } [NSApp finishLaunching]; NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys: - NO, @"AppleMomentumScrollSupported", - NO, @"ApplePressAndHoldEnabled"]; + [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported", + [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled", + nil]; [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults]; }