i’d like to save some “workspace” type settings: settings that are tied to the document rather than to the app itself.

things like the selected tab, the sidebar widths, etc.these need to persist even if the user doesn’t save the document — so they’re definitely settings, not document data.

anyone else doing this?

i was hoping there was some hidden corner of NSUserDefaults that handled this, but that doesn’t seem to be the case.

@isaiah 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 😆

@tapforms 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?