Re: Font size in NSTableView

Markus Hitter <[email protected]>
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Am 17.02.2010 um 17:00 schrieb Christiaan Hofman:

> 1. NSTableView does NOT do it right on it own, because NSTableView  
> does not do anything, it USES the settings it has (-rowHeight is a  
> property that can be set, it's not a derived property.)

... but you agree NSTableView has a default setting? Likely the  
default setting is the height of the default cell, as NSTableView  
doesn't set, but caches the content's heights (likely).

> 3. I want to be able to change the font and row height, based on a  
> user pref (compare Mail.app)

Well, change the font and NSTableView should adopt. If it doesn't,  
support NSTableView by changing the cell's size. There's a - 
cellSizeForBounds and a -sizeToFit method.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
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.