Re: NSDrawer delegate function mis-described?
Re: NSDrawer delegate function mis-described?
- Subject: Re: NSDrawer delegate function mis-described?
- From: "Ben Kennedy" <email@hidden>
- Date: Mon, 27 Jan 2003 19:33:44 -0500
- Organization: Zygoat Creative Technical Services
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@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.