Преглед изворни кода

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];
 
     }