1

I have a NSTableView with 2 columns. I do have code to enter text in the cells for each row. Is there a way to limit the number of characters entry in the cell say max upto 10?

DShah
  • 9,768
  • 11
  • 71
  • 127
Subrat
  • 175
  • 3
  • 13

1 Answers1

0

You can't tell the cell self to cut the NSString. But you can cut the inputString

cell.textLabel.text = [yourString substringToIndex:10];
Seega
  • 3,001
  • 2
  • 34
  • 48