Re: Store window size and location
Re: Store window size and location
- Subject: Re: Store window size and location
- From: Kyle Moffett <email@hidden>
- Date: Mon, 19 Aug 2002 15:33:33 -0400
On Monday, August 19, 2002, at 12:16 PM, Tony S. Wu wrote:
Now I have these two lines in windowControllerDidLoadNib:
[window setFrameUsingName: @"MyWindow"];
[window setFrameAutosaveName: @"MyWindow"];
But it doesn't seem to store the window size like it did with the
"Simple
Toolbar" sample.
Could anyone tell me what the problem might be?
I've checked both my codes and the nib files, didn't spot anything.
Thanks.
Tony S. Wu
email@hidden
"Nope, this world ain't perfect. But at least I know it's not because of
me."
Somewhere you've got to [window saveFrameUsingName: @"MyWindow"]
so that the size is written down in your prefs. Then use only
[setFrameUsingName:@"MyWindow"] in windowControllerDidLoadNib
HTH,
Kyle Moffett
_______________________________________________
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.