aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/cocoa.m28
1 files changed, 24 insertions, 4 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 37e1fb52eb..c0fdbcccf8 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -59,7 +59,7 @@
#define NSControlStateValueOff NSOffState
#endif
-//#define DEBUG
+#define DEBUG
#ifdef DEBUG
#define COCOA_DEBUG(...) { (void) fprintf (stdout, __VA_ARGS__); }
@@ -422,7 +422,7 @@ QemuCocoaView *cocoaView;
- (void) drawRect:(NSRect) rect
{
- COCOA_DEBUG("QemuCocoaView: drawRect\n");
+// COCOA_DEBUG("QemuCocoaView: drawRect\n");
// get CoreGraphic context
CGContextRef viewContextRef = [[NSGraphicsContext currentContext] CGContext];
@@ -1138,6 +1138,26 @@ QemuCocoaView *cocoaView;
[super dealloc];
}
+- (void)applicationDidResignActive: (NSNotification *) note
+{
+ COCOA_DEBUG("DidResignActive\n");
+}
+
+- (void)applicationWillBecomeActive: (NSNotification *) note
+{
+ COCOA_DEBUG("WillBecomeActive\n");
+}
+
+- (void)applicationDidBecomeActive: (NSNotification *) note
+{
+ COCOA_DEBUG("DidBecomeActive\n");
+}
+
+- (void)applicationWillFinishLaunching: (NSNotification *) note
+{
+ COCOA_DEBUG("WillFinishLaunching\n");
+}
+
- (void)applicationDidFinishLaunching: (NSNotification *) note
{
COCOA_DEBUG("QemuCocoaAppController: applicationDidFinishLaunching\n");
@@ -1809,7 +1829,7 @@ static void cocoa_update(DisplayChangeListener *dcl,
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- COCOA_DEBUG("qemu_cocoa: cocoa_update\n");
+// COCOA_DEBUG("qemu_cocoa: cocoa_update\n");
dispatch_async(dispatch_get_main_queue(), ^{
NSRect rect;
@@ -1852,7 +1872,7 @@ static void cocoa_refresh(DisplayChangeListener *dcl)
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- COCOA_DEBUG("qemu_cocoa: cocoa_refresh\n");
+// COCOA_DEBUG("qemu_cocoa: cocoa_refresh\n");
graphic_hw_update(NULL);
if (qemu_input_is_absolute()) {