Re: Size of my app's window on different screens?
Re: Size of my app's window on different screens?
- Subject: Re: Size of my app's window on different screens?
- From: Quincey Morris <email@hidden>
- Date: Thu, 01 Oct 2015 22:26:33 -0700
- Feedback-id: 167118m:167118agrif8a:167118sqm2kLGaCe:SMTPCORP
On Oct 1, 2015, at 18:26 , Alex Hall <email@hidden> wrote:
I get how to use Auto Layout to position things in my app's window, but what about the window itself?
On OS X, it’s not really usual for the window to be sized directly to the display it’s on. That might work for small to medium size displays, but it tends to make windows ridiculously large on large displays. There are many possible routes to choosing a window size, but usually the general principle is to set a default size that makes sense for your app, and a minimum size to prevent the window from getting too small to display its content properly. Then, windows always open at the default size, except when the actual display isn’t big enough, in which case the window is reduced to fit.
You should probably try that approach first. If you feel the need to customize the size further, you can conveniently do so in the window controller’s ‘windowDidLoad’ method.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden