Post #830962
2026-03-29 01:54 UTC
@isaiah@mastodon.social For SwiftUI, SceneStorage is like AppStorage only per window. I don’t know how to map this to UserDefaults but there must be a link.
Replies (2)
-
@isaiah@mastodon.social 2026-03-29 02:01
@troz@mastodon.social per window isn’t really sufficient — unless the document is mapped to a specific window. what i want is basically Xcode. if i open a project, i want the the same files open, the same left sidebar tab should be selected, as the last time i viewed that project. this is neither a user defaults sort of thing (which is global, nor the settings of a particular UI element) nor is it part of the NSDocument model. it’s the stuff in the xcuserdata of each xcode project.
-
@bwebster@mastodon.social 2026-03-29 01:56
@troz@mastodon.social @isaiah@mastodon.social I think SceneStorage would roughly map to the AppKit state restoration stuff.