In my OSX/Cocoa application, I’d like to detect when users are clicking on a link in my WebKit (WebView) view. I tried setting the UI delegate and implementing “webView:createWebViewWithRequest” however, the request object is ALWAYS nil when this method is called.
The link used is valid. When used with an external web browser it will lead to a valid page.
You want to make a WebPolicyDelegate and implement the
decidePolicyForNavigationActionanddecidePolicyForNewWindowActionmethods.