Re: Font size in NSTableView

Christiaan Hofman <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
On Feb 18, 2010, at 4:05, Adam R. Maxwell wrote:

> 
> On Feb 17, 2010, at 12:36 PM, Christiaan Hofman wrote:
> 
>>> and b) set the NSTableView's row height to the height of the size-to-fitted text cell.
>>> 
>> 
>> But my question is: what is this height? There are many ways to calculate the line height of a font (especially different typesetting behavior), and different Cocoa objects give you different answers by default (NSString, NSCell, NSTextFieldCell, ...). Which one is the relevant calculation?
> 
> Have you seen this thread?  http://www.cocoabuilder.com/archive/cocoa/159190-tables-created-in-code-have-different-row-height-from-those-created-in-ib.html?q=nstableview+font+row+height#159297

Yes. But it's very old (in computing terms), and what's said there is not consistent with the current behavior of Cocoa and IB. It also does not really say what it SHOULD be doing.

Christiaan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.