On Feb 17, 2010, at 9:52 PM, Hank Heijink (Mailinglists) wrote:

> On Feb 17, 2010, at 4:55 PM, Eric Gorr wrote:
> 
>> On Feb 4, 2010, at 3:13 PM, Hank Heijink (Mailinglists) wrote:
>> 
>>> On Feb 4, 2010, at 2:51 PM, Eric Gorr wrote:
>>> 
>>>> When I am resizing my window, I have a delegate method 
>>>> windowWillResize:toSize: which is being called. What I am finding odd is 
>>>> that the width of the size being passed in will never go below 64 pixels 
>>>> even if the width for contentMinSize and minSize is less then 64 pixels. I 
>>>> can easily force the window to be less then 64 pixels.
>>>> 
>>>> So, does anyone know where this 64 pixels limit is coming from?
>>> 
>>> Measure from the left edge of the window to the rightmost edge of the 
>>> maximize button: 64 pixels. I doubt you can adjust it, but who knows - 
>>> maybe if you get rid of the title bar?
>> 
>> Can one override the 64 pixel limit?
> 
> In Cocoa? I doubt that very much. Maybe if you drop down to Carbon, but I 
> haven't tried that myself.

Perhaps, but the goal is to avoid Carbon stuff. But, if this were possible, I 
would be interested.

In any case, I have filed a bug report on this - rdar://7662356.

Btw, the reason why this is important is that the window is a resizable NSPanel 
which contains several tool buttons which the user needs to be able to arrange 
in a single column.

The width of the buttons is not large enough so a single column of them would 
cause the panel to be wide enough to show the zoom button, so the zoom button 
is hidden - which is common among such interfaces.

If anyone is interested, a sample application demonstrating the problem can be 
found at - http://ericgorr.net/cocoadev/WindowWillResize.zip

The other odd thing I noticed is that once one gets to < 64 pixels, calls to 
windowWillResize:toSize: becomes jumpy. It only seems to be called if the 
cursor is moving to the left "fast enough" to trigger the call. Moving by 
single pixels to the left will not cause windowWillResize:toSize: to be called.

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to