Hi, I have a table with custom detail view where I update a record by means other than stv. When I'm done I call:
[tableModel reloadBoundValues];
[tableModel.modeledTableView reloadData];
The problem is that the original predicate of the section is not respected. This is how my section looks like:
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"category = %@", category];
SCArrayOfObjectsSection *objectsSection = [SCArrayOfObjectsSection sectionWithHeaderTitle:nil withEntityClassDefinition:entryDef usingPredicate:predicate];
objectsSection.allowEditDetailView = NO;
[tableModel addSection:objectsSection];
Looking at the source code, I've found this method that gets called:
// override superclass method
- (void)reloadBoundValues
{
#ifdef _COREDATADEFINES_H
SCClassDefinition *classDef = [self firstClassDefinition];
if(classDef.entity)
self.items = [SCHelper generateObjectsArrayForEntityClassDefinition:classDef usingPredicate:itemsPredicate];
#endif
}
The problem is that predicate is (null) when it gets called, even though there is a predicate when I create the section. Am I doing something wrong, or is this a bug? I'm using version 2.0 RC2