To avoid marking this question as duplicate: I have seen this question (Passing Data between View Controllers) but that is for iOS. I have seen many other similar questions, but they all provide answers for IOS. My question is for OS-X app.
And yes, I did check and here and on Google, but I was unable to find anything that solves this issue in OS-X.
Having that said, here is the question:
In one of my NSViewControllers (MasterTableViewController) I have the following method:
- (IBAction)tableViewDoubleClick:(id)sender {
NSInteger rowNumber = [_websitesTableView clickedRow];
NSTableColumn *column = [_websitesTableView tableColumnWithIdentifier:@"websiteUrl"];
NSCell *cell = [column dataCellForRow:rowNumber];
NSString *cellValue = [cell stringValue];
}
How I could (should) properly pass this data (rowNumber, cellValue) to another NSViewController (DetailViewController)?