• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Redirect web links to Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Redirect web links to Safari (From: "Ian G. Gillespie" <email@hidden>)

  • Prev by Date: Redirect web links to Safari
  • Next by Date: NSXMLParser and DTD-file
  • Previous by thread: Redirect web links to Safari
  • Next by thread: NSXMLParser and DTD-file
  • Index(es):
    • Date
    • Thread