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?
Asked
Active
Viewed 162 times
1 Answers
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