Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Restrain size of NSWindow to NSToolbar only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Restrain size of NSWindow to NSToolbar only



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.