Repository navigation
v0.2.6 — macOS Run() Exit Fix (contributor: @nange)
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:destroyOnMainThreadnow posts anNSEventTypeApplicationDefinedevent 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 CoreFoundationCFRunLoopStopFFI. (#14, #21)
Contributors
Thank you @nange for identifying the root cause, providing empirical verification on macOS 26, and submitting the fix!