Просмотр исходного кода

Fixed dictionary initialization

Sam Lantinga 12 лет назад
Родитель
Сommit
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];
         [NSApp finishLaunching];
         NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
         NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
-            NO, @"AppleMomentumScrollSupported",
-            NO, @"ApplePressAndHoldEnabled"];
+            [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
+            [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
+            nil];
         [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
         [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
 
 
     }
     }