• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Restrain size of NSWindow to NSToolbar only
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Xcode - ___gxx_personality_v0 symbol error
  • Next by Date: Re: Restrain size of NSWindow to NSToolbar only
  • Previous by thread: Re: Xcode - ___gxx_personality_v0 symbol error
  • Next by thread: Re: Restrain size of NSWindow to NSToolbar only
  • Index(es):
    • Date
    • Thread