Hi guys
trying to use SCArrayOfObjectsModel, as i have it load items and build section headers for grouping
When there are NO items for it to list, i can't seem to find a way to add a new item
SCArrayOfObjectsSection *objectsSection = (SCArrayOfObjectsSection *)[self.tableViewModel sectionAtIndex:0]; [objectsSection dispatchEventAddNewItem];
calling something like this is no good since the table is empty there are no sections at any index so calling dispatchEventAddNewItem on nil doesn't work
if i use this
NSObject *myObject = [NSEntityDescription insertNewObjectForEntityForName:@"entity" inManagedObjectContext:moContext]; [self.tableViewModel generateSectionsForObject:myObject withDefinition:myDef];
well this loads the view ok.. and i can enter in a new item, but if i decide to click cancel, the item is still added to the dataset even thou items have in the definition - Required..
so how do others get around this problem?