Reputation: 199
I dragged a Table View from the library, and linked the datasource and delegate, it worked. But when the Application is running, I can double click the row in the table, and actually put some words in it. I just want it to be non-editable. What should I do?
Upvotes: 0
Views: 778
Reputation: 990
You can just uncheck the Editable button in table column attributes in xib file.
Upvotes: 1
Reputation: 1229
Implement the following delegate method that will return NO
- (BOOL)tableView:(NSTableView *)aTableView shouldEditTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
{
return NO;
}
Upvotes: 1