Re: Retaining state of windows and panels
Re: Retaining state of windows and panels
- Subject: Re: Retaining state of windows and panels
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 17 Jan 2005 08:28:58 +0100
On dimanche, janvier 16, 2005, at 11:59 PM, Henry Maddocks wrote:
Is this true? I have the auto save name set in IB for my window but it
always opens at the 'default' size and position. Or does auto mean
something else and I have to manually cause it to save?
IIRC, there used to be a problem where the window position was not
saved/restored when the window was not resized or closed before the
application quits but I don't think it's still here. But don't blindly
trust my recollection on this one.
On 17/01/2005, at 11:41 AM, Stéphane Sudre wrote:
On dimanche, janvier 16, 2005, at 10:51 PM, Chad Armstrong wrote:
I would like to be able to retain information of an NSPanel (a
floating palette), such as where the panel is, its size, whether it
is open or not, and have those settings be restored when the
application is opened again. Is there a simple way about doing
this, or is this a more involved procedure on saving the window's
(or panel's) information before the application is closed?
Open or not is to be managed by you and you can do this via
NSUserDefaults.
Position and size can be handled automatically via the Window's name
in InterfaceBuilder or code. I think there's an old (Mac OS X 10.0 or
10.1 era) of Interface Builder which had troubles saving Window's
name but it's been fixed since.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
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
_______________________________________________
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