Skip to content

bitbardd#5

Merged
geersch merged 28 commits into
masterfrom
feat/bitbardd
May 14, 2026
Merged

bitbardd#5
geersch merged 28 commits into
masterfrom
feat/bitbardd

Conversation

@geersch
Copy link
Copy Markdown
Owner

@geersch geersch commented May 11, 2026

No description provided.

@geersch geersch changed the title Feat/bitbardd bitbardd May 11, 2026
@geersch geersch force-pushed the feat/bitbardd branch 2 times, most recently from 7d75280 to ed424ff Compare May 11, 2026 18:59
geersch added 7 commits May 12, 2026 22:00
… on repeated alerts

NSHostingView and NSHostingController both leave SwiftUI attribute-graph objects
in the Objective-C autorelease pool. When a second alert is shown before the
first window's pool drains, objc_release dereferences a stale pointer into the
first view's deallocated SwiftUI graph -> EXC_BAD_ACCESS in NSApp.run().

Replace SwiftUI with a plain NSView (PillView) that draws the pill using
CALayer properties and an NSTextField label. No autorelease pool involvement,
no SwiftUI graph lifetime issues.

Also switch win.close() to win.orderOut(nil) so the window is hidden before
the strong reference is removed from activeWindows, preventing a brief window
where the pool could hold a dangling pointer to a deallocated NSWindow.
@geersch geersch merged commit 039d074 into master May 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant