title: NSTableView Row Height based on NSStrings
body: <p>Basically, I have an NSTableView with 1 collumn, and I'm inserting long strings into each row. However, not all the strings are long, so I'd like the height of each row to be different based on how long the string is.</p>
  
  <p>I've figured out that I need to ask the collumn how wide it is, and then ask the string how many lines it will take up if the collumn is that wide, and then decide how "tall" the NSCell will be. But how exactly do I go about doing that? I've gotten the collumn width from:</p>
  
  <p><code>[[[tableView tableColumns] objectAtIndex:0] width];</code></p>
  
  <p>but I can't figure out how to ask the NSString how much space it will take up. Or, perhaps, there is a better way that I should go about doing this?</p>
  
  <p>Thanks for any help in advance.</p>