Re: Font size in NSTableView
"Adam R. Maxwell" <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
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