Skip navigation.
 
mlRe: How to get window title bar font ^size^ ?
FROM : Andrew Farmer
DATE : Sun Nov 25 07:58:28 2007

On 24 Nov 07, at 22:21, Jerry Krinock wrote:
<snip>
> (The reason why I'm doing this is to place a little icon to the left 
> of the title, so I need to know how big it is.  With lots of code, 
> I've gotten it all to work...handling resizing was really fun.  But 
> I have to hard-code that stupid font size.)
>
> When I log the subviews of the window, I get the red button, the 
> yellow button, the green button and the main contentView.  I was 
> hoping to get some kind of text "view" that would be the window 
> title, but apparently it's not a "view".


From the NSWindow documentation:

[[<window> standardWindowButton:NSWindowDocumentIconButton] 
setImage:<image>]

I believe this is only available in 10.5, though.

Related mailsAuthorDate
mlHow to get window title bar font ^size^ ? Jerry Krinock Nov 25, 07:21
mlRe: How to get window title bar font ^size^ ? Andrew Farmer Nov 25, 07:58
mlRe: How to get window title bar font ^size^ ? Philip Q Nov 25, 08:09
mlRe: How to get window title bar font ^size^ ? Thomas Davie Nov 25, 15:09
mlRe: How to get window title bar font ^size^ ? Gregory Weston Nov 25, 18:59