Add macOS New/Save Rig menu items and save-on-switch prompt
- macOS File menu gains New Rig (⌘N) and Save Rig (⌘S), which forward to the in-window builder via shoeGazeNewRig / shoeGazeSaveRig notifications so the naming prompt and current-rig highlight update correctly. - Selecting a different rig while the current one has unsaved changes now prompts Save / Don't Save / Cancel (both platforms). Dirtiness is captureState() != the loaded entry's state; a backing-less working rig with boards counts as dirty. - Generalize saveCurrentRig to take a completion (used by Save & Clear and by save-then-switch). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -27,12 +27,16 @@ session (`ShoeGazeState`) and may contain multiple boards.
|
||||
- `RigLibraryBootstrap` — one-call shell setup: resolve location, start the store, seed it from the
|
||||
working rig on first run, resolve the launch highlight.
|
||||
- `ShoeGazeBuilderView` gains the sidebar; selecting a rig **replaces** the current session
|
||||
(engine stopped/restarted around the rebuild). The old single-rig Save/Load is gone; the File
|
||||
menu / sidebar now do whole-library **Archive** import/export.
|
||||
(engine stopped/restarted around the rebuild). When the current rig has unsaved changes
|
||||
(`captureState()` differs from its library entry), switching first prompts **Save /
|
||||
Don't Save / Cancel** (both platforms). The old single-rig Save/Load is gone; the File menu /
|
||||
sidebar now do whole-library **Archive** import/export.
|
||||
|
||||
**Shells / entitlements**
|
||||
- macOS `AppDelegate` and iOS app model own + start the store and pass it to the view; macOS File
|
||||
menu = Export/Import Archive.
|
||||
menu = New Rig (⌘N), Save Rig (⌘S), Export/Import Archive (⌘E/⌘I). The per-rig menu items forward
|
||||
to the builder view via `Notification.Name` (`shoeGazeNewRig` / `shoeGazeSaveRig`) so naming
|
||||
prompts and the current-rig highlight stay in the view that owns that state.
|
||||
- Both builder targets carry the iCloud entitlement for container
|
||||
`iCloud.net.realizedsound.ShoeGazeData`; `NSUbiquitousContainers` exposes `Documents/Rigs` in the
|
||||
Files app.
|
||||
|
||||
Reference in New Issue
Block a user