ShowFileDialog (UI thread) and ChooseFile (any goroutine, waits) show a
native dialog for the window -- NSOpenPanel/NSSavePanel as a sheet on
macOS, GetOpenFileNameW/GetSaveFileNameW on Windows -- with a title, a
start folder, a suggested name and allowed extensions. It only returns
the chosen path; one dialog at a time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Options.FrameFile: the window's position, size and maximized state in
a small JSON file, read at New (a frame on no connected screen is
ignored, the window opens centered), written shortly after every move
or resize and at Destroy. macOS: NSWindow frame (the normal frame
under a zoomed one), checked against NSScreen visible frames; Windows:
Get/SetWindowPlacement, checked with MonitorFromRect.
- macOS: the web view is a WKWebView subclass that accepts the first
mouse click, so a page in an inactive window reacts to it instead of
the click only activating the window (yanks' start dialog).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extracted from prototypes/yetano-webview (AP1): packages assets,
document, bridge and window (macOS Cocoa/WKWebView via cgo, Windows
Win32/WebView2 pure Go). No local HTTP listener or port: assets go
through the WebView's resource handler, app routes through the native
message binding. Own go.mod and gui/vX.Y.Z tags keep cgo and the
WebView dependencies out of the main core module. Adds backend-free
tests for the window's dispatch/destroy guards and a yet-gui migration
guide.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>