which method is called when selecting a cell in the NSTableView in Cocoa OS X?
问题 I have a NSTableView , i want to get the value present in the cell. I am having only one column so , i just need the row number i can use this [tableView selectedRow]- but where do i put this i want to put this in a method that gets called on selection of any of the rows. -(void)tableViewSelectionDidChange:(NSNotification *)notification{ NSLog(@"%d",[tableViewController selectedRow]); } The above method also does not work i am getting the error -[NSScrollView selectedRow]: unrecognized