Re: Grow Bug ?
Re: Grow Bug ?
- Subject: Re: Grow Bug ?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Mon, 17 Nov 2008 10:13:38 +0100
Le 16 nov. 08 à 23:32, Carlos Eduardo Mello a écrit :
Hi,
Cocoa newbie here. I've been doing Carbon developing for a while,
but just started to learn Cocoa.
So, forgive me if my questions seem too dum.
I was working on Hillgass's Custom Views tutorial (chapter 17, pg.
233). It involves drawing into a custom view which grows with the
window. Everything works as expected. However, when the user moves
the grow box towards the title bar, if the window vertical dimension
goes under the window/view margin size, and then grows again, the
top margin gets smaller. If the window size is shrunk to 0 and back,
the top margin disapears. And if the user releases the grow box when
the vertical dimension is 0, it becomes impossible to grow the
window back again. [10.5]
Is this a know bug?
This is a known limitation of the "layout manager".
Is it just something that needs more work on my side in order to
function properly?
Maybe It needs some code to control the min/max window sizes?
The min size of the window should be set in Interface Builder. (but
you can also set is in your code, see NSWindow class reference, -
setMinSize: method).
_______________________________________________
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
References: | |
| >Grow Bug ? (From: Carlos Eduardo Mello <email@hidden>) |