I have an NSTableView setup with bindings and I've setup the delegate+dataSource to File's Owner. The table view's elements are not triggering delegate methods. If I click outside the elements, i.e the table view background - selectionShouldChangeInTableView is called.
I cannot understand why tableViewSelectionDidChange is not called. Seriously why is it so difficult to debug this?
-(void)tableViewSelectionDidChange:(NSNotification *)notification {
NSLog(@"%s", __PRETTY_FUNCTION__);
NSTableView *tableView = [notification object];
[[NSNotificationCenter defaultCenter] postNotificationName:TABLE_SELECTION object:tableView];
}
- (BOOL)selectionShouldChangeInTableView:(NSTableView *)tableView {
NSLog(@"Hello there");
return YES;
}
selectionShouldChangeInTableViewalways return YES? - Willekedelegateconnection to your controller that has the delegate methods? - ElmerCat