You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 26fc6bb
Browse filesBrowse the repository at this point in the historyBrowse files
The NSApplication (PBDarkMode) category overrode
observeValueForKeyPath:ofObject:change:context:, shadowing AppKit's
own implementation on NSApplication. On appearance change (dark/light
or Increase Contrast), AppKit delivers its internal KVO notifications
to NSApp using its own contexts; the override's else branch then
forwarded to super, which reached NSObject's default implementation
and raised the "message received but not handled" exception,
aborting the app.
Observe effectiveAppearance through a dedicated token object instead,
so AppKit's own implementation is left untouched and our KVO change
is delivered without shadowing anything.
Fixgitx#578
0 commit comments