Oh, and one more question: Is it possible for CBLJSONEncoding objects to have a property whose type is itself another CBLJSONEncoding, or an array of CBLJSONEncoding objects? Thanks!
Ragu On Thursday, April 10, 2014 6:37:14 AM UTC-7, Ragu Vijaykumar wrote: > > 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/179f9147-2336-4064-bda8-f95c303076c3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
