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, cocoa-dev-requ...@lists.apple.com wrote:

> Date: Thu, 03 Oct 2013 06:27:35 -0700
> From: Jerry Krinock <je...@ieee.org>
> To: Cocoa Developers <cocoa-dev@lists.apple.com>
> Subject: Re: Window too large for Versions Browser
> Message-ID: <e248f4e2-9edd-464a-93dc-49525d473...@ieee.org>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> On 2013 Oct 03, at 00:12, Half Activist <halfactiv...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to