How to get the Window Title Bar height?
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