• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Store window size and location
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Store window size and location (From: David Martin <email@hidden>)

  • Prev by Date: A better Sketch
  • Next by Date: Re: Monitoring class loading
  • Previous by thread: Re: Store window size and location
  • Next by thread: RE: Store window size and location
  • Index(es):
    • Date
    • Thread