Commit da324233e2f830079524e9d5763cba7767da860f

Sam Lantinga 2014-03-02T13:06:51

Fixed dictionary initialization

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m
index d1dab03..438385c 100644
--- a/src/video/cocoa/SDL_cocoaevents.m
+++ b/src/video/cocoa/SDL_cocoaevents.m
@@ -272,8 +272,9 @@ Cocoa_RegisterApp(void)
         }
         [NSApp finishLaunching];
         NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
-            NO, @"AppleMomentumScrollSupported",
-            NO, @"ApplePressAndHoldEnabled"];
+            [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
+            [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
+            nil];
         [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
 
     }