How do I select column and row from a NSTableView?
问题 I am writing a NSTableView based view. And I try to use: let selectedRowNumber = tableViewMesos.selectedRow and let selectedColumnNumber = tableViewMesos.selectedColumn to identify the textField that is in the cell View that I want to save into my array: taulaDeConsumsMesos[selectedColumnNumber].filesConsum![selectedRowNumber] = sender.doubleValue But a problem happens here, because the return value of selectedColumnNumber is -1 which is the value of non-selected Column for any row selected