• 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
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


  • 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.

  • Follow-Ups:
    • Re: Restrain size of NSWindow to NSToolbar only
      • From: Matt Gemmell <email@hidden>
  • Prev by Date: Sigbus on exit for NSStatusItem app
  • Next by Date: Re: Writing Files
  • Previous by thread: Sigbus on exit for NSStatusItem app
  • Next by thread: Re: Restrain size of NSWindow to NSToolbar only
  • Index(es):
    • Date
    • Thread