[newbie] Window state saving
[newbie] Window state saving
- Subject: [newbie] Window state saving
- From: Jonathan Saggau <email@hidden>
- Date: Sat, 14 Jan 2006 18:42:38 -0500
I'm working on a very small NSDocument app that needs to reload the state of
all GUI widgets on the NSDocument's main window when loading a document.
Right now (and it does work) I'm enumerating the widgets (Sliders and
buttons and things) and putting the state info in a plist and refreshing the
view from the plist on open. I wonder if there is a more elegant way to do
this. Perhaps Serializing the whole mess to disk with a coder? I know the
NIB files do this kind of thing "freeze-drying" the GUI as it were for a
given app. I just wonder if I'm missing a method that says "save state of
entire window to disk." :)
This has to work "per document" so I can't put it into the preferences for
the app.
What really-obvious(tm) thing am I missing?
Cheers and thanks,
Jonathan Saggau
PS - is there somewhere I can download the entire archive of this list or
some other way I can get the whole thing into mail.app?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden