From a1beccd63da1a96fcb567d5ff2cc7e0d640c1a8a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 27 Dec 2015 22:19:59 -0500 Subject: [PATCH] Pinpointed the issues with mouseExited:. A TODO for now; this is gonna be murder to figure out :) --- darwin/area.m | 10 ---------- darwin/checkbox.m | 2 ++ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/darwin/area.m b/darwin/area.m index 736db34f..d7f34433 100644 --- a/darwin/area.m +++ b/darwin/area.m @@ -223,24 +223,14 @@ mouseEvent(otherMouseUp) { uiArea *a = self->libui_a; -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 %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/darwin/checkbox.m b/darwin/checkbox.m index 28f789d8..09af33a7 100644 --- a/darwin/checkbox.m +++ b/darwin/checkbox.m @@ -75,6 +75,8 @@ void uiCheckboxSetText(uiCheckbox *c, const char *text) { [c->button setTitle:toNSString(text)]; // this may result in the size of the checkbox changing + // TODO something somewhere is causing this to corrupt some memory so that, for instance, page7b's mouseExited: never triggers on 10.11; figure out what + // TODO is this related to map-related crashes? uiDarwinControlTriggerRelayout(uiDarwinControl(c)); }