• 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: What Size My Window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What Size My Window?


  • Subject: Re: What Size My Window?
  • From: Uli Kusterer <email@hidden>
  • Date: Thu, 4 Sep 2008 10:49:44 +0200

On 04.09.2008, at 10:10, Gerriet M. Denkmann wrote:
6. Other?

So: is there some commonly agreed upon right strategy?
Are there some official guidelines for document window sizes?


You can save the size of your window in some plist in your document using -stringWithSavedFrame and restore it using -setFrameFromString:. That would be per-document. The one issue this has is that the user would have to save the document each time to make this stick. So just moving a window dirties the document.

It's a little hard to do this using an NSDocument, but a common approach is to use a resource or xattributes to attach the window positions to a file without touching the actual document. That way, diff and similar tools won't think it's changed, and if the position gets lost during internet transfer, that's not too bad, as it's not vital information.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: What Size My Window?
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >What Size My Window? (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: What Size My Window?
  • Next by Date: NSNotificationCenter removeObserver NOT working
  • Previous by thread: Re: What Size My Window?
  • Next by thread: Re: What Size My Window?
  • Index(es):
    • Date
    • Thread