4

I need to authenticate user in my app, and for that I want to spawn another window with Cocoa WebView control. The problem is that I can't do anything with that control from C# code, and can't find any documentation for it :(

Trying to use

WebViewWindow.MainFrame.LoadRequest (Request);

But it throws exception of some kind. How to properly open URL in that WebView? Maybe using something like GeckoFX instead is a good idea?

Also I'll need to get back url that user was redirected to. How to do this?

Thanks.

JonathanX64
  • 93
  • 1
  • 10

1 Answers1

1

you can use like this

public override void AwakeFromNib()
{
    base.AwakeFromNib();
    webView.MainFrame.LoadRequest(new NSUrlRequest
        (new NSUrl( "http://www.google.com)));

}
Burak Ogutken
  • 690
  • 10
  • 21