From 66ad8066ea4a23c0f0f6406c64c1ecffc17283c5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 27 Dec 2015 17:13:57 -0500 Subject: [PATCH] Improved the exited debugging. --- darwin/area.m | 6 ++++-- test/page7b.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/darwin/area.m b/darwin/area.m index 34e981ad..736db34f 100644 --- a/darwin/area.m +++ b/darwin/area.m @@ -223,22 +223,24 @@ mouseEvent(otherMouseUp) { uiArea *a = self->libui_a; -NSLog(@"entered"); +NSLog(@"entered %p", self); NSLog(@"a %p", a); NSLog(@"ah %p", a->ah); NSLog(@"crossed %p", a->ah->MouseCrossed); (*(a->ah->MouseCrossed))(a->ah, a, 0); +NSLog(@"after entered call"); } - (void)mouseExited:(NSEvent *)e { uiArea *a = self->libui_a; -NSLog(@"exited"); +NSLog(@"exited %p", self); NSLog(@"a %p", a); NSLog(@"ah %p", a->ah); NSLog(@"crossed %p", a->ah->MouseCrossed); (*(a->ah->MouseCrossed))(a->ah, a, 1); +NSLog(@"after exited call"); } // note: there is no equivalent to WM_CAPTURECHANGED on Mac OS X; there literally is no way to break a grab like that diff --git a/test/page7b.c b/test/page7b.c index 420155c8..d1f98a74 100644 --- a/test/page7b.c +++ b/test/page7b.c @@ -27,6 +27,7 @@ static void handlerMouseEvent(uiAreaHandler *a, uiArea *area, uiAreaMouseEvent * static void handlerMouseCrossed(uiAreaHandler *ah, uiArea *a, int left) { +printf("%d %d\n", left, !left); uiCheckboxSetChecked(label, !left); }