浏览代码

Fixed dictionary initialization

Sam Lantinga 11 年之前
父节点
当前提交
da324233e2
共有 1 个文件被更改,包括 3 次插入2 次删除
  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];
 
     }