Skip navigation.
 
mlRe: NSDrawer delegate function mis-described?
FROM : Ben Kennedy
DATE : Tue Jan 28 01:33:44 2003

On 27 1 2003 at 7:18 pm -0500, Shaun Wexler wrote:

>The window is improperly setting its minSize to account for the
>drawer's offsets, and the "jumpy" resizing behavior has to do with
>offsets and the drawer's minContentSize.height.  See my other reply in
>this thread.


Shaun, I was about to post the same thing as your message came in... I
just discovered that.  I wrote my own resize increment thing in
windowWillResize:toSize:, to find that it had no effect.  So I realised
the resize increments thing had nothing to do with it.

Something is indeed forcing the bloody window's minSize, and I can't even
fix it programmatically!  I threw this in windowWillResize:toSize:, and
even in windowDidResize:

NSLog(@"window minHeight %f", [window minSize].height);
[window setMinSize:NSMakeSize(20,20)];
NSLog(@"window minHeight %f", [window minSize].height);

...and both NSLog statements indicate the same minimum size.  My call to
setMinSize is being patently ignored.  Why is this; simply due to the
presence of the drawer?  Is there code in -[NSWindow setMinSize] to
expressly frustrate the developer if he has a drawer attached to the window?

So it appears there is no way to work around this... is there?  Oh wait,
your other long one on the thread just came in... wanna e-mail me your
code?  :)

-b

--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlNSDrawer delegate function mis-described? Ben Kennedy Jan 27, 22:46
mlRe: NSDrawer delegate function mis-described? Douglas Davidson Jan 27, 23:15
mlRe: NSDrawer delegate function mis-described? Ben Kennedy Jan 28, 00:19
mlRe: NSDrawer delegate function mis-described? Shaun Wexler Jan 28, 01:07
mlRe: NSDrawer delegate function mis-described? Shaun Wexler Jan 28, 01:18
mlRe: NSDrawer delegate function mis-described? Ben Kennedy Jan 28, 01:33
mlRe: NSDrawer delegate function mis-described? Ben Kennedy Jan 28, 01:35
mlRe: NSDrawer delegate function mis-described? Scott Anguish Jan 28, 05:42
mlRe: NSDrawer delegate function mis-described? Ben Kennedy Jan 28, 06:19
mlRe: NSDrawer delegate function mis-described? Shaun Wexler Jan 28, 07:40