Re: NSTextFieldCell multi-line

2010-11-10 Thread Jerry Krinock
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

Re: NSTextFieldCell multi-line

2010-11-09 Thread Ross Carter
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

Re: NSTextFieldCell multi-line

2010-11-09 Thread Micha Fuhrmann
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

Re: NSTextFieldCell multi-line

2010-11-08 Thread jonat...@mugginsoft.com
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

Re: NSTextFieldCell multi-line

2010-11-08 Thread Vincent Habchi
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

NSTextFieldCell multi-line

2010-11-08 Thread Micha Fuhrmann
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