• 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
How to get the Window Title Bar height?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get the Window Title Bar height?


  • Subject: How to get the Window Title Bar height?
  • From: Stephane Sudre <email@hidden>
  • Date: Mon, 3 Oct 2005 16:53:22 +0200

Is there a way in Cocoa to know the height of a window title bar (and preferably the height for a standard NSWindow)?

There's a bug in Cocoa (in all releases since 10.1 I guess) with the minimum size of the window in the following case:

- the minimum size for the window is set in Interface Builder (so in a Nib)

- the window is going to be used as a Sheet and is resizable

Problem:
--------

When you try to decrease the default size of the sheet when it's displayed, the window height is increased. This is probably due to the fact that Apple's code does not take into consideration that when a window is a sheet, there is no title bar.

I could use a constant but I'd rather use a function or real SDK constant.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to get the Window Title Bar height?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: [ANN] Advanced Mac OS X Programming
  • Next by Date: Re: How to get the Window Title Bar height?
  • Previous by thread: Re: NSTableview Drag and Drop ordering with Core Data
  • Next by thread: Re: How to get the Window Title Bar height?
  • Index(es):
    • Date
    • Thread