开发者

shouldStartLoadWithRequest equivalent in WebKit framework?

开发者 https://www.devze.com 2023-02-16 16:52 出处:网络
I\'m trying to looking for an equivalent implement of webView:shouldStartLoadWit开发者_开发技巧hRequest:navigationType: in the WebKit framework (on Mac).

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:

0

精彩评论

暂无评论...
验证码 换一张
取 消