In my case,
I had NSTableViewwith elements from the list of "List of elements",
and OutlineView, like this:
- Parent A
- Parent B
- List of List Items
Parent A and B are not important, but they are here to demonstrate that there is no fixed number of lines before the "list of items" view.
So what I did was that I used the
- (void)tableViewSelectionDidChange:(NSNotification *)aNotification
method in my delegate NSTableViewand in the method using
NSTableView *tableView = [aNotification object];
NSInteger clickedRowInTableView = [tableView selectedRow];
to get the new highlighted line in mine tableView.
" " ( , , "" , ), " ", .
: clickedRowInTableView + rowNrOfItemsListView + 1, 1 " ".
NSOutlineView โ selectRowIndexes:byExtendingSelection: ( Nate, ), OutlineView.
, , .