• 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
override hyperlink handler for WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

override hyperlink handler for WebView


  • Subject: override hyperlink handler for WebView
  • From: Wayne Shao <email@hidden>
  • Date: Mon, 2 Aug 2010 22:17:27 -0700

Hi,

I'd like to present some HTML content in WebView.

The HTML content is from a local file, with references to some local images
 and a few <a href> hyperlinks.

However, I want to override the click of all hyperlinks in the page so that
I open it within my application.
When the user clicks on a hyperlink, I do not want the link content to be
displayed in WebView.  Instead, I want to do some processing
and present relevant information in another  view in my application.

How shall I do this?  The delegates in WebView are not helpful.

--
W. Shao
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: override hyperlink handler for WebView
      • From: John Joyce <email@hidden>
  • Prev by Date: Re: Using NSNotificationCenter passing an object or value?
  • Next by Date: Need help understanding first responder and multiple nibs
  • Previous by thread: Re: Using NSNotificationCenter passing an object or value?
  • Next by thread: Re: override hyperlink handler for WebView
  • Index(es):
    • Date
    • Thread