Re: Redirect web links to Safari
Re: Redirect web links to Safari
- Subject: Re: Redirect web links to Safari
- From: Jim Correia <email@hidden>
- Date: Wed, 24 Nov 2004 08:53:16 -0500
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden