Re: Cocoa-dev Digest, Vol 10, Issue 633
Re: Cocoa-dev Digest, Vol 10, Issue 633
- Subject: Re: Cocoa-dev Digest, Vol 10, Issue 633
- From: Half Activist <email@hidden>
- Date: Fri, 04 Oct 2013 09:03:01 +0200
Thanks Jerry. I don't know how i went by the documentation and didn't see this method :S
As for the size of the window, the view is somewhat mangled with buttons overlapping at this size. Yet the user can review its data in versions.
Regards.
On Oct 3, 2013, at 7:59 PM, email@hidden wrote:
> Date: Thu, 03 Oct 2013 06:27:35 -0700
> From: Jerry Krinock <email@hidden>
> To: Cocoa Developers <email@hidden>
> Subject: Re: Window too large for Versions Browser
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
> 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