Here is what I use to get the row size ...
NSSize size = [@"Some text" sizeWithAttributes:[NSDictionary dictionaryWithObject:[NSFont fontWithName:@"Helvetica Neue Bold" size:24.0f] forKey:NSFontAttributeName]];
NOTE. . If you add a line to the text box, I found that you need to add from 10 to size.width for it.
Albeebe
source share