I'm working on a html/javascript + cocoa hybrid app. From what I can tell, Cocoa's WebView uses the same javascript engine as Safari (Nitro).
However, there's a couple of things in the V8 JS engine (used by Chrome) that would be nice luxuries to have. Since Chrome and Safari are both Webkit based, I'm wondering wether it's at all possible to change the swap out Nitro for V8 for a cocoa WebV开发者_运维百科iew?
in a cocoa web view... No. but which a "non-trivial" (ie. huge) amount of engineering you could build your own replacement WebView.
here is the embedding guide for v8 and webkit is also open source, and you can get it here.
but if you just want it for a couple of convenient aspects of v8, you wouldn't be making good use of your time.
Also google has the chromium SDK which would be a better starting point that webKit but still probably not a good use of your time.
精彩评论