project-switch v0.20.1
Restoring the macOS menu bar for the webview
The macOS webview window had a subtle but irritating problem: because it runs from a bare binary that tao promotes to a foreground app at startup, it had no main menu — and a regular macOS app with no main menu leaves the left side of the system menu bar dead, so the Apple menu and the app menu didn’t respond to clicks. Worse, without an Edit menu the standard Cmd+X/C/V/A shortcuts didn’t work inside the page either.
The fix installs a minimal main menu when NSApplication finishes launching (the same StartCause::Init moment I already use to set the dock icon, since anything done earlier is discarded by the promotion). It’s just two menus: an app menu with Quit, and an Edit menu wiring Cut/Copy/Paste/Select All to their standard selectors — which both revives the menu bar and restores clipboard shortcuts in the webview. This pulled in the NSMenu/NSMenuItem features from objc2-app-kit.