I'm using a menu item to set the column text field to editable. This is what I tried, but there is simply no response (no text is turned editable). (I have logged, and the method is called, and the textfield is not null.)
- (IBAction)setEditable:(id)sender
{
NSInteger selectedRow = [_tableView selectedRow];
NSInteger selectedColumn = [_tableView selectedColumn];
NSTableCellView *selectedCell = [_tableView viewAtColumn:selectedColumn row:selectedRow makeIfNecessary:NO];
[selectedCell.textField setEditable:YES];
}
Does this have to be done in another way? The textfield is also set as editable in IB, so it works by double clicking on it, but I also want the option in the context menu.