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

What Size My Window?


  • Subject: What Size My Window?
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 4 Sep 2008 15:10:40 +0700

For an ordinary window one can set in IB "Auto Save Name:" and everything works as expected. I can give it a nice size and position and the next time I open it, all is fine.

But if this window is a document, controlled by some NSDocumentController, this Auto Save Name seems to be ingnored (at least on Tiger).
This is annoying, as it forces me to size each new window again and again.


Several solutions come to mind:

1. Have a FrameAutosaveName for each document
Disadvantage: does not define a nice size for new documents.
Clutters preferences.

2. Let the nib decide. (Current strategy).
Disadvantage: if my definition of "nice size" differs from the nib, I have to resize each new document.


3. Use last changed/ moved window
Disadvantage: if I want all windows in size A, but one special document in size B, then after this special document I have to resize the next one again to size A.


4. Have a menu: "Use frontmost window as default size and position"
Disadvantage: menu clutter, clumsy.

5. Use the frontmost window
Disadvantage: If I have one window with non-standard size, I must remember not to close it as the last one.


6. Other?


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

Kind regards,

Gerriet.

_______________________________________________

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: Uli Kusterer <email@hidden>
    • Re: What Size My Window?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Selection in NSCollectionView
  • Next by Date: Re: Creating a runloop to handle specific mouse events
  • Previous by thread: clipView's boundsSize changes after scrollToPoint:
  • Next by thread: Re: What Size My Window?
  • Index(es):
    • Date
    • Thread