Re: Store window size and location
Re: Store window size and location
- Subject: Re: Store window size and location
- From: "Tony S. Wu" <email@hidden>
- Date: Sun, 18 Aug 2002 17:51:11 -0700
Thanks for the reply.
Now I have these two lines in windowDidLoadNib:
[window setFrameUsingName: @"MyWindow"];
[window setFrameAutosaveName: @"MyWindow"];
But it still doesn't do a thing...
Any other suggestions?
Thanks.
Tony S. Wu
email@hidden
"Nope, this world ain't perfect. But at least I know it's not because of
me."
David Martin at email@hidden wrote:
>
On Saturday, August 17, 2002, at 09:35 , Tony S. Wu wrote:
>
>
> What is the best way to store document's window size and location in a
>
> document-based application?
>
>
You'll store them in the user defaults, but Cocoa takes care of that for
>
you. There's an example in /Developer/Examples/AppKit/SimpleToolbar:
>
>
[documentWindow setFrameUsingName:@"MyDocumentWindow"];
>
[documentWindow setFrameAutosaveName:@"MyDocumentWindow"];
>
>
David
>
_______________________________________________
>
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.
_______________________________________________
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.