Basically, I have an NSTableView with 1 column, and I insert long rows into each row. However, not all lines are long, so I would like the height of each line to be different depending on the length of the line.
I realized that I need to ask collumn how wide it is, and then ask the line how many lines it will occupy, if collumn is that wide, and then decide how โtallโ NSCell will be, But how exactly do I do? I got the column width:
[[[tableView tableColumns] objectAtIndex:0] width];
but I canโt figure out how to ask NSString how much space it will take. Or maybe there is a better way I should do this?
Thanks for any help in advance.
objective-c cocoa nstableview
element119 Jul 09 '10 at 11:52 2010-07-09 11:52
source share