ShouldStartLoadWithRequest equivalent in a WebKit structure?

I am trying to find an equivalent implementation webView:shouldStartLoadWithRequest:navigationType:in a WebKit environment (on Mac).

I looked through WebUIDelegateand WebFrameLoadDelegatebut found nothing useful.

Any help is much appreciated =). Thank.

+3
source share
2 answers

webView:decidePolicyForNavigationAction:request:frame:decisionListener:and other related methods WebPolicyDelegatedo the same.

If you execute [listener use]in this method, this is similar to return YESin iOS. And vice versa: do nothing to return NO.

+1
source

Well, I did not pay attention to the documents. Just in case anyone has the same problem,webView:didStartProvisionalLoadForFrame:

-1
source

All Articles