Ok, I got the section category working, but I had to make it work with SCArrayOfObjectsSection instead of SCTableViewSection. One of the methods the category was calling wasn't available on SCTableViewSection.
Anyway, how do I get the data to refresh? I've tried [tableView reloadData] and [tableModel reloadBoundValues] but none seem to re-trigger the CoreData fetch.
Do I have to manually remove my section from the tableModel and then re-execute my code to generate the SCArrayOfObjectsSection? Or is there a more preferred way to refresh the data?
The reason I ask this is I am maintaining a list of recently scanned product bar codes. One tab of my application contains the scanner. When you scan a product, it displays the product details after it looks it up on our servers. It then saves the product to my CoreData database. Then, another tab displays a list of recently scanned products. The problem is, when I switch to the Recents tab, the newly scanned products don't show up.
I've added this code to viewDidAppear:
-(void) viewDidAppear:(BOOL)animated {
[self.tableModel reloadBoundValues];
[self.aTableView reloadData];
[super viewDidAppear:animated];
}
But that's not refreshing the list.
Thanks,
Brendan