From 208a4f5646ff4e17e00554daf6a513d0dc2cd7ed Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Wed, 26 May 2010 20:54:48 +0000 Subject: [PATCH] [Connection defaultConnection] and NewString are deprecated in OS X 10.6. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5492 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/cocoaApp.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinWX/Src/cocoaApp.m b/Source/Core/DolphinWX/Src/cocoaApp.m index 15ac8d3fc2..5c5402cf89 100644 --- a/Source/Core/DolphinWX/Src/cocoaApp.m +++ b/Source/Core/DolphinWX/Src/cocoaApp.m @@ -52,7 +52,7 @@ bool cocoaKeyCode(NSEvent *event) bool Return = false; NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; - NSConnection *connec = [NSConnection defaultConnection]; + NSConnection *connec = [[NSConnection new] autorelease]; [connec setRootObject: event]; if ([connec registerName: @"DolphinCocoaEvent"] == NO) @@ -62,8 +62,7 @@ bool cocoaKeyCode(NSEvent *event) if( [event type] != NSFlagsChanged ) { - NSString *NewString = [event characters]; - char *Keys = [NewString UTF8String]; + const char *Keys = [[event characters] UTF8String]; if( Keys[0] == 'q' && [event type] == NSKeyDown ) QDown = true;