Event *event = ... // where event is a CBLModel.
CBLDocument *doc = event.document;
NSError* error;
if (![doc update: ^BOOL(CBLUnsavedRevision *newRev) {
newRev[@"eventStatus"] = @"PENDING";
return YES;
} error: &error]) {
NSLog(@"Error saving event. %@", error);
}
Todd
On Apr 24, 2017, at 4:38 PM, Todd Freese <to...@filmworkers.com> wrote:When changing a CBLModel property and saving the model, does it use the CBLDocument update method?