-2
我正確地得到選定的行號,但所選列返回-1。selected NSTableView中的列返回-1
- (void) tableViewSelectionDidChange:(NSNotification *)notification
{
int row = [[notification object] selectedRow];
int column = [[notification object] selectedColumn];
你是如何選擇行?因爲-1的值表示沒有選擇列。 – Abizern