mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Finder double-click, Open With, drops on the Dock icon and open -a deliver files as kAEOpenDocuments Apple events, not argv, and winit 0.30 ignores them. Register an NSAppleEventManager handler through the small fmv-macos-events crate (MIT OR Apache-2.0, 168 lines, audited, pinned =0.1.0; it keeps the Objective-C unsafe out of our forbid(unsafe_code) workspace) before the event loop starts, so both the launching event and later ones reach the UI as OsEvent::Open; the window is focused. The quit Apple event goes through the normal close path. Co-Authored-By: Claude Opus 5.5 <[email protected]>