Thanks for the additional context, Jens. 

Regarding that shell, I just came across this project, which provides an 
embedded HTTP server for Mac and iOS. https://github.com/swisspol/GCDWebServer

Do you think this could be leveraged to provide that missing link?

A.

Sent from my iPad

> On May 24, 2014, at 11:31 PM, Jens Alfke <[email protected]> wrote:
> 
> 
>> On May 24, 2014, at 7:54 PM, Aaron Vegh <[email protected]> wrote:
>> 
>> I'm sorry, your rationale appears to be contradictory: if I need to come up 
>> with a solution that works on the Mac anyway, why not figure one out that 
>> works on iOS too?
> 
> You can't, because AppKit and UIKit are different, and because WebView and 
> UIWebView are very different. What you need is a shell for hosting a local 
> web-app, and that shell is going to have to be custom-written for each 
> platform. Or, on iOS you can use one that already exists (PhoneGap) which 
> leaves you only one to write yourself.
> 
> Plugging CBL into that shell, once you have it, is pretty trivial. You just 
> need to initialize it at launch time, which is what that code you quoted does.
> 
>> In my own attempt I used the -internalURL method without success, but this 
>> CBLRegisterJSViewCompiler(), which digs into an included binary framework…
> 
> That framework is just a copy of Apple's JavaScriptCore for use on iOS 6, 
> because it wasn’t made public till iOS 7.
> 
>> and this is where I lose the trail at the moment. Is this path worth 
>> pursuing, do you think? Or is this a rabbit hole that leads to requiring 
>> PhoneGap, and I'm back to square one?
> 
> They’re orthogonal to each other. You need (a) a shell for running a local 
> web-app in a WebView, and (b) code to initialize CBL. Of these, (b) is 
> already provided for you, and (a) is provided for iOS in the form of PhoneGap.
> 
> —Jens
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Couchbase Mobile" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/mobile-couchbase/3PLm_V-LMy8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/mobile-couchbase/6CDF78DA-6A2D-4142-8A9E-948D2AF0124C%40couchbase.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/B778226A-EAEE-4E24-ABC2-6BC95AA2EC65%40vegh.ca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to