On 2010 Nov 09, at 12:30, Ross Carter wrote:
> If so, you might need to adjust the typesetterBehavior setting.
For NSTextField, try NSTypesetterBehavior_10_2_WithCompatibility.
NSTextField and, I presume, NSTextFieldCell, seem to suffer from some legacy
oddities that make it tricky to accurate
On Nov 9, 2010, at 4:45 AM, Micha Fuhrmann wrote:
> Thanks for your respons, but I need the exacte size in points, which means
> drawing with the right Font etc.
>
> So here's where I am
>
> in
>
> - (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row
>
> I'm calling a fun
Thanks for your respons, but I need the exacte size in points, which means
drawing with the right Font etc.
So here's where I am
in
- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(NSInteger)row
I'm calling a function which calculates the height needed for the text and
that's what
On 8 Nov 2010, at 08:55, Micha Fuhrmann wrote:
> Dear All,
>
> I'm stuck here and it seems so trivial...
>
> I'm using NSTextFieldCell in a tableview and when the text takes the whole
> cell, the cell size doesn't resize and add a line (which I would expect!!!).
> Setting the text properties
Le 8 nov. 2010 à 09:55, Micha Fuhrmann a écrit :
> But how can I compute the amount screen pixels my NSString that's going into
> the cell will take to return a height with the proper number of lines? I must
> be missing something, it's just too silly.
Assuming that "font" is a NSFont * ivar on
Dear All,
I'm stuck here and it seems so trivial...
I'm using NSTextFieldCell in a tableview and when the text takes the whole
cell, the cell size doesn't resize and add a line (which I would expect!!!).
Setting the text properties in NSCell doesn't cut it either. So I've tried
using
- (CGFl