I have started to convert the Webview interfaces to be consumed in Delphi. I have managed to get the webkit library to load, and the interface methods that is called appears to
Getting the NSWindow of a FMX form
convert a TForm reference to a NSWindow
set Host Window.
MyWebView.setHostWindow(MyNSWindow)
procedure TForm2.Button1Click(Sender: TObject);
var
[...]
ObjTOC: TOCLocal;
MyNSWindow : NSWindow;
[...]
ObjTOC := (FmxHandleToObjC(Form2.Handle) as TOCLocal);
MyNSWindow := NSWindow(TOCLocalAccess(ObjTOC).Super);
PWebView := TWebView.Alloc.initWithFrame(MakeNSRect(10, 10, 300, 300), nil, nil);
MyWebView := TWebView.Wrap(PWebView);
MyWebView.setHostWindow(MyNSWindow);
[...]
MyWebView.mainFrame.loadRequest(urlreq);
end;