I want to get the data of NSTableView selected row.But i need to access the Core data data corresponding of the selected row.
i only know how to get the selected row, but not the corresponding data.
i only know how to get the selected row, but not the corresponding data.
Code:
NSInteger selectedRow = [_contragentSheetTableView selectedRow];
if (selectedRow >= 0) {
NSLog(@"The selected row is %li", selectedRow);
}
else {
NSLog(@"No row was selected");
}