Restrain size of NSWindow to NSToolbar only
Restrain size of NSWindow to NSToolbar only
- Subject: Restrain size of NSWindow to NSToolbar only
- From: Rolf <email@hidden>
- Date: Mon, 30 Jun 2003 21:48:20 +0200
Hi,
My app has an NSWindow that contains only a NSToolbar. The NSWindow is supposed to have a fixed height that is equal to the NSToolbar + Window Title bar height, and a variable width from X upto the width of the toolbar.
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.
/Rolf
_______________________________________________
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.