Skip to content

v0.2.5 — macOS Run() Exit Fix

Choose a tag to compare

@kolkov kolkov released this 05 Aug 11:38
· 21 commits to main since this release
09470a4

Fixed

  • macOS: Run() still not exiting after Remove(). v0.2.4 called CFRunLoopStop from destroyOnMainThread, which was dispatched via performSelectorOnMainThread:waitUntilDone:YES — deadlock because the run loop must process events for performSelector to fire. Fix: call [NSApp stop:] + CFRunLoopStop() directly from Destroy() (both thread-safe per Apple docs) to wake and stop the run loop first, then dispatch cleanup with waitUntilDone:NO. (#14)