Skip to content

v0.2.6 — macOS Run() Exit Fix (contributor: @nange)

Choose a tag to compare

@kolkov kolkov released this 05 Aug 14:27
· 19 commits to main since this release
aaafca1

Fixed

  • macOS: Run() never returning after Remove(). CFRunLoopStop (v0.2.4-v0.2.5) did not work — [NSApp run] only re-checks the stop flag after processing a real event. Fix by @nange: destroyOnMainThread now posts an NSEventTypeApplicationDefined event via [NSApp postEvent:atStart:YES] after [NSApp stop:]. The event wakes the loop, which sees the stop flag and exits. Verified on macOS 26 (Apple Silicon). Removes unused CoreFoundation CFRunLoopStop FFI. (#14, #21)

Contributors

Thank you @nange for identifying the root cause, providing empirical verification on macOS 26, and submitting the fix!