Re: [newbie] Window state saving
Re: [newbie] Window state saving
- Subject: Re: [newbie] Window state saving
- From: Mike Abdullah <email@hidden>
- Date: Sun, 15 Jan 2006 00:03:02 +0000
Why do you need to save the location of all of the widgets? In most
cases I'd have thought that all you really need to save is the size
of the window itself. That way when you set the size of the window,
everything in it positions itself to required position?
Apologies if I've got the wrong of this particular stick!
Mike A.
On 14 Jan 2006, at 23:42, Jonathan Saggau wrote:
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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