Re: Restrain size of NSWindow to NSToolbar only
Re: Restrain size of NSWindow to NSToolbar only
- Subject: Re: Restrain size of NSWindow to NSToolbar only
- From: "M. Uli Kusterer" <email@hidden>
- Date: Tue, 1 Jul 2003 00:01:55 +0200
At 21:48 Uhr +0200 30.06.2003, Rolf wrote:
How do I do that ? I guess the correct way of limiting NSWindow size
is to use the setMinSize: and setMaxSize: methods, but I haven't
been able to find a way of determining the NSToolbar size and the
Window Titale bar height.
IIRC, setMinSize and setMaxSize restrain the sizes for the content
area. You don't need to care about the size of the title bar, and I
don't think a toolbar actually counts as part of the content area
either, so you might want to try just using height = 0.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.