On Feb 17, 2012, at 11:34 AM, Philip Sharpe <[email protected]> wrote:

> I’ve been looking into using WebKit but I’m slightly confused on exactly how 
> to use the WebKit libraries.  The Apple docs (the only ones according to the 
> web-site) suggest you create a WebView object as the ‘master’ object.  
> However the WebView header file (WebView.h) seems to be missing from the 
> Win32 build.  Looking at the example applications I believe the following is 
> true:
>  
> Win32:
> Create an instance of the IWebView interface with the WebKitCreateInstance 
> function (found in WebKit/WebKitCOMAPI.h) and use the interface as if it were 
> the WebView object.
> WinCE:
> Create an instance of the WebView object and use as appropriate.
>  
> I presume there is no easy way to use the WebView class on Win32?  This would 
> help with cross platform code :)

The documentation on developer.apple.com is referring to the Cocoa WebKit API 
that is exposed by WebKit.framework on OS X. There is no Cocoa on Windows, so 
the API is not going to be identical between the two platforms.

However, the Windows COM API is meant to mimic the Cocoa API as much as 
possible. You'll find lots of similarities between IWebView on Windows and 
WebView on OS X. It shouldn't be too hard to write a wrapper around the two 
that exposes a single interface.

-Adam


_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help

Reply via email to