Re: Font Size Problem in NSTableView
Re: Font Size Problem in NSTableView
- Subject: Re: Font Size Problem in NSTableView
- From: David Emme <email@hidden>
- Date: Tue, 2 May 2006 12:28:12 -0700
--- On 5/2/06 12:05 PM (-0700), Greg Herlihy wrote:
>The formula for calculating the font height is incorrect. The font
>height would actually be:
>
> ascender + descender + leading
>
You would think so, but as it turns out, descender returns a negative
value. so "- descender" produces the desired result.
>You might also have to send a tile message to the table for it to
>adjust to the new row heights.
setRowHeight: is documented to send a tile message itself, and seems to
do so. The row height does change when I expect it to, it just seems
that the baseline is set "wrong".
-Dave
--
Some mornings it just doesn't seem worth it
to gnaw through the leather straps.
- Emo Phillips
_______________________________________________
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