shouldStartLoadWithRequest equivalent in WebKit framework?
I'm trying to looking for an equivalent implement of webView:shouldStartLoadWit开发者_开发技巧hRequest:navigationType:
in the WebKit framework (on Mac).
I looked through WebUIDelegate
& WebFrameLoadDelegate
but did not find anything useful.
Any help is very much appreciated =). Thanks.
webView:decidePolicyForNavigationAction:request:frame:decisionListener:
and other related WebPolicyDelegate
methods do the same thing.
If you do [listener use]
in this method, it's like return YES
in iOS. And vice versa: do nothing to return NO.
Oh well I overlooked the docs. Just in case anyone has the same problem, it's webView:didStartProvisionalLoadForFrame:
精彩评论