I have a tableview that is bound to an array controller. I can add records just fine by using the array controller's add: action. However there is one part in the code that I wish to add additional records. I can add the records to the array controller just fine, but the NSTableView will not add. After I add the records, I can run the "add:" action and the tableview will reload and only then I can see the added records.
Here is a snippet of my code:
authorsView is an Outlet connected to my table that is bound to the array controller (_authors, which is an array of Author)
Any ideas? I have tried everything to try to get that thing to refresh!
Here is a snippet of my code:
Code:
Author *newAuth;
newAuth = [[Author alloc] init];
[[newAuth properties] setValue:@"first" forKey:@"firstname"];
[[newAuth properties] setValue:@"lost" forKey:@"lastname"];
[_authors addObject:newAuth];
[newAuth release];
[authorsView reloadData];
authorsView is an Outlet connected to my table that is bound to the array controller (_authors, which is an array of Author)
Any ideas? I have tried everything to try to get that thing to refresh!