• 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: Interpreting WebView Clicks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interpreting WebView Clicks


  • Subject: Re: Interpreting WebView Clicks
  • From: August Trometer <email@hidden>
  • Date: Tue, 16 Nov 2004 07:42:50 -0500

That's exactly what I was looking for -- I don't know why I didn't see it earlier. Thanks!

While we're on the subject, here's a tougher one. How do I go about registering a URL type (such as ipx://) so that if it's clicked in a regular web page in Safari for example, my application is used? I don't think I want to do this, but I'm just curious.

Thanks!

August




On Nov 16, 2004, at 1:13 AM, daniel wrote:

Look at the documentation regarding the "setPolicyDelegate" method of WebView.

You will get called whenever a URL is clicked (except some, it seems, like javascript, which are handled internal to the view).

I've definitely used this for custom "stand-in" schemes like what you're describing, though.

Daniel

On Nov 15, 2004, at 11:57 AM, August Trometer wrote:

This is probably an easy one, but I can't seem to find in the docs how to go about doing this.

I have a WebView loaded with content. What I'd like to do is interpret the links in the WebView and handle them appropriately, allowing the links to affect the UI. For example, a normal URL might load the content for that location, but, say, a link like ipx://location would send a message to my Controller, much like a NSButton.

How do I go about doing this?

Thanks!

August

_______________________________________________ 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
  • Follow-Ups:
    • Re: Interpreting WebView Clicks
      • From: Rudi Sherry <email@hidden>
References: 
 >Interpreting WebView Clicks (From: August Trometer <email@hidden>)
 >Re: Interpreting WebView Clicks (From: daniel <email@hidden>)

  • Prev by Date: Re: [Proposal] On-the-fly NIB localization
  • Next by Date: Re: A framework for parsing HTML?
  • Previous by thread: Re: Interpreting WebView Clicks
  • Next by thread: Re: Interpreting WebView Clicks
  • Index(es):
    • Date
    • Thread