Re: NSWindow not restoring location
Re: NSWindow not restoring location
- Subject: Re: NSWindow not restoring location
- From: Shawn Erickson <email@hidden>
- Date: Fri, 14 Jun 2002 08:34:01 -0700
On Thursday, June 13, 2002, at 12:50 PM, Ondra Cada wrote:
On Thursday, June 13, 2002, at 08:24 , Edwin Zacharias wrote:
- (void)windowDidMove: (NSNotification *)aNotification
{
[ [ self window ] saveFrameUsingName: @"Inspector" ];
}
This looks superfluous. Is it not in your setup?!?
I think it is... the following method tells the window what its auto
save name is. The key word is auto, every time the window is moved or
resized its default will be updated.
- (void)windowDidLoad
{
[ [ self window ] setFrameAutosaveName: @"Inspector" ];
}
Or if you don't set the auto save name you need to save things yourself
when and where you want to.
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.