Existing NSWindow Show Notifications Don't Work

People in Slack asked me why I didn't use another mechanism to get notified when NSWindows are shown. Here's what I was suggested and what I found:

Same for the related NSWindowDelegate calls you can receive, namely windowDidBecomeMain(_:) and windowDidBecomeKey(_:).

The dance involving NSApplicationDelegate.applicationDidUpdate(_:) an applicationWillUpdate(_:) is still the most resilient option I know. I'm open to suggestions, though!

Browse the blog archive