I play to use this, but had a question regarding its implementation. 
Looking at the 
doxygen<http://couchbase.github.io/couchbase-lite-ios/docs/html/protocolCBLJSONEncoding-p.html>files,
 I see that there are 2 methods: initWithJSON, encodeAsJSON.


However, looking at the source header CBLJSON.h, I see that there is an 
additional an additional *optional* method declared, 
setOnMutate:(CBLOnMutateBlock)onmutate - I'm still a bit unclear on when to 
implement / utilize this method properly.

Does this mean that if my object implementing CBLJSONEncoding is at all 
mutable, I need this class? And if so, does it mean that anytime I change 
any of its instance variables / properties, I need to call the onMutate 
block?

If the above answers are yes, is there any clean way I can just observe 
changes to all my properties and automatically call this block, perhaps as 
a generic superclass to any nested child classes of a CBLModel?

Thanks,
Ragu

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/5a2ec7e2-28e7-476d-86d5-e9c692652ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to