If we were to improve the GrocerySync app, the document retrieved in
- (void)couchTableSource:(CBLUITableSource*)source willUseCell:(UITableViewCell*)cell forRow:(CBLQueryRow*)row should be really a Task (subclass of
CBLModel). So, instead of:
NSDictionary* rowValue = row.value;
we would retrieve it like so:
Task *task = row.value;
Is there a way to replace the default NSDictionary-based row values with their
CBLModel counterpart? Otherwise, instantiating the model object every time we return the cell would be wasteful because we would be repeating the work if cells were being reused. Any ideas?