• 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: 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.

  • Follow-Ups:
    • Re: Store window size and location
      • From: "Tony S. Wu" <email@hidden>
References: 
 >Store window size and location (From: "Tony S. Wu" <email@hidden>)

  • Prev by Date: Re: tool tips for tableview?
  • Next by Date: [newbie] How to discover a file's Creation date?
  • Previous by thread: Store window size and location
  • Next by thread: Re: Store window size and location
  • Index(es):
    • Date
    • Thread