Fixed dictionary initialization
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];
}