开发者

Is it possible to use a change the Javascript engine a Cocoa WebView uses?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜