Re: Store window size and location
Re: Store window size and location
- Subject: Re: Store window size and location
- From: David Martin <email@hidden>
- Date: Sat, 17 Aug 2002 21:47:15 +0200
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.