Browse Source

Fixed dictionary initialization

Sam Lantinga 11 years ago
parent
commit
da324233e2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/video/cocoa/SDL_cocoaevents.m

+ 3 - 2
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];
 
     }