Re: Window too large for Versions Browser
Re: Window too large for Versions Browser
- Subject: Re: Window too large for Versions Browser
- From: Jerry Krinock <email@hidden>
- Date: Thu, 03 Oct 2013 06:27:35 -0700
On 2013 Oct 03, at 00:12, Half Activist <email@hidden> wrote:
> Well, the minSize is actually correctly set but that doesn't seem to be small enough for Versions on small desktops, I found a solution by implemeting the NSWindowDelegate methods below to set the minSize to 640x480 when entering Versions, and setting it back to 1200x680 when exiting.
I think that you need to give this more thought.
First of all, the intended method where you should resize your window for the versions browser is
-window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize: is , not -windowWillEnterVersionBrowser:
If you used that method, then you will get an allowed size which is commensurate with the current display resolution, and would not need to hard-code it to the minimum known size, which could get smaller if, for example, Apple someday decides to put OS X on an iPad or iWatch :))
And then there is the issue of how your app works normally on small screens, with a minSize of {1200, 680} for that window.
Finally, that minSize is supposed to be the absolute minimum that works. If you can change it from {1200, 680} down to {640, 840}, then {1200, 680} was not really a minimum!
And, out of curiosity, I assume you are testing this with your display resolution set to some very small value? And it works OK without those delegate method implementations if you test it with larger display resolution?
_______________________________________________
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