Post #830351
2026-03-29 00:55 UTC
@isaiah@mastodon.social I've been doing that for years now. Just a dictionary of key values stored in a plist file within the document bundle. I just load it in when the document is instantiated. I modeled it directly after NSUserDefaults. I called it ..... TFUserDefaults. Very original 😆
Replies (2)
-
@isaiah@mastodon.social 2026-03-29 02:08
@tapforms@mastodon.social and do you save that data when the user saves the document? if so, then that’s what i’m doing now. or do you save a bit of extra data somewhere else with the project bundle — even if the user saves nothing?
-
@isaiah@mastodon.social 2026-03-29 02:13
@tapforms@mastodon.social if you do save it to the project bundle, even when the NSDocument model hasn’t changed, can i ask how you decide when to write that file? i can do it, but it seems like there’s a a potential race condition. when the user chooses save the project bundle will be replaced atomically i think — thus nuking any extra files in the bundle.