Skip navigation.
 
mlRe: Redirect web links to Safari
FROM : Jim Correia
DATE : Wed Nov 24 14:53:16 2004

On Nov 24, 2004, at 8:18 AM, Ian G. Gillespie wrote:

> I searched the archives and read the documentation (OK, at least most
> of it), but still can't quite figure it out.  I have a small web view
> in my app and want it so that when someone clicks a link, it opens it
> in Safari. I found some delegate methods about page-did-load and
> page-will-load, and even one for opening links in other windows, but
> nothing for just opening a link.  I would appreciate it if someone
> could get me started in the right direction.


There is a WebKit specific list - in general you may have better luck
asking these types of questions there.

You need to provide a policy delegate and respond to the message

- (void)webView:(WebView *)webView
decidePolicyForNavigationAction:(NSDictionary *)actionInformation
                                                           
request:(NSURLRequest *)request
                                                             
frame:(WebFrame *)frame
                                                 
decisionListener:(id<WebPolicyDecisionListener>)listener


Jim

Related mailsAuthorDate
mlRedirect web links to Safari Ian G. Gillespie Nov 24, 14:18
mlRe: Redirect web links to Safari Jim Correia Nov 24, 14:53