I've been defining a bunch of MAPBLOCKs for my view and I was wondering 
whether there was anyway of converting the (NSDictionary* doc) parameter to 
a CBLModel inside my map function? Ideally, I'd want to convert the doc to 
a CBLDocument* object, and then use the CBLModelFactory to create the right 
type of CBLModel for me, or nil, and then I can check if the CBLModel is 
the right kind of model I want (isKindOfClass). If so, I can then do my map 
processing using the properties of the model.

The reason I want to do this is so that my map functions aren't littered 
with strings which don't give me any compile-time safety. Is there a way to 
properly do this?

Thanks for your help!
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/252bfcde-b986-4759-8265-dc97a4bf4269%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to