[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Cocoa: avoid warning related to multiple method def
From: |
Alexandre Raymond |
Subject: |
[Qemu-devel] [PATCH] Cocoa: avoid warning related to multiple method definitions |
Date: |
Sun, 29 May 2011 18:36:19 -0400 |
This fix forces a message to be sent to the handleEvent method
of the QemuCocoaView class instead of letting the system determine
the right method.
This is caused by the fact that the cocoaView variable is a generic 'id'.
----8<----
ui/cocoa.m: In function ‘cocoa_refresh’:
ui/cocoa.m:997: warning: multiple methods named ‘-handleEvent:’ found
/System/Library/Frameworks/AppKit.framework/Headers/NSTextInputContext.h:84:
warning: using ‘-(BOOL)handleEvent:(NSEvent *)theEvent’
ui/cocoa.m:272: warning: also found ‘-(void)handleEvent:(NSEvent *)event’
----8<---
Signed-off-by: Alexandre Raymond <address@hidden>
---
ui/cocoa.m | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ui/cocoa.m b/ui/cocoa.m
index e1312d3..1975011 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -994,7 +994,7 @@ static void cocoa_refresh(DisplayState *ds)
event = [NSApp nextEventMatchingMask:NSAnyEventMask
untilDate:distantPast
inMode: NSDefaultRunLoopMode dequeue:YES];
if (event != nil) {
- [cocoaView handleEvent:event];
+ [(QemuCocoaView *) cocoaView handleEvent:event];
}
} while(event != nil);
vga_hw_update();
--
1.7.5
- [Qemu-devel] [PATCH] Cocoa: avoid warning related to multiple method definitions,
Alexandre Raymond <=