Let me describe what I achieved and what doesn't work in a bit more detail.
I've got a working Javascript view on Cloudant. It's called "messages" and it's in a design document with an ID "_design/desdoc". I'd like to use it on iOS too. Here's what I do in the iOS application: 1. Set the view compiler to Javascript view compiler: CBLRegisterJSViewCompiler(); 2. Get the view by its name: CBLView *myView = [self.database existingViewNamed:@"desdoc/messages"]; 3. Try logging the view to see if the previos call returned anything: NSLog(@"view: %@", myView); Unfortunately, only "view: (null)" is logged. Is there anything I'm missing? Am I referencing the view by the correct name? I can print the view's map function using this code: NSLog(@"map function: %@", [self.database existingDocumentWithID:@"_design/desdoc"][@"views"][@"messages"][@"map"]); Is there perhaps a way to feed this string to the compiler manually? I see there is a method named compileMapFunction in CBLJSViewCompiler, but it seems to be private. -- 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/597cd6c0-8fe5-411b-afdd-8c2f874a744f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
