Fixed dictionary initialization

This commit is contained in:
Sam Lantinga 2014-03-02 13:06:51 -08:00
parent 0f9bb0cda6
commit da324233e2
1 changed files with 3 additions and 2 deletions

View File

@ -272,8 +272,9 @@ Cocoa_RegisterApp(void)
} }
[NSApp finishLaunching]; [NSApp finishLaunching];
NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys: NSDictionary *appDefaults = [[NSDictionary alloc] initWithObjectsAndKeys:
NO, @"AppleMomentumScrollSupported", [NSNumber numberWithBool:NO], @"AppleMomentumScrollSupported",
NO, @"ApplePressAndHoldEnabled"]; [NSNumber numberWithBool:NO], @"ApplePressAndHoldEnabled",
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults]; [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
} }