开发者

which delegate method will be invoked when click the tab of safari?

开发者 https://www.devze.com 2022-12-12 04:12 出处:网络
As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate):

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate):

webView:didStartProvisionalLoadForFrame:

webView:didChangeLocationWithinPageForFrame:

and When we click or change the tabs of safari,which delegate methods开发者_开发百科 will be invoked? Thank you very much!


"We" don't know since this is entirely up to Safari what it fancies doing. At a guess, Safari encloses a WebView for each tab in a tabless NSTabView and switches between them. But again, that's just what it chooses to do at the moment, and might change its mind at any time.

As ever to your incessant questions, Safari has no plug-in API. WebKit does, but anything outside of that defined API is unknown, dangerous, and just asking for trouble. Please don't try it.


Well it's very likely that each tab in safari is using it's own webkit control, as they don't reload when you switch between them.

So I'd have to venture a guess and say neither unless you're actually loading a page.

0

精彩评论

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