Re: Interpreting WebView Clicks
Re: Interpreting WebView Clicks
- Subject: Re: Interpreting WebView Clicks
- From: daniel <email@hidden>
- Date: Mon, 15 Nov 2004 22:13:31 -0800
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:
sweater.com
This email sent to email@hidden
_______________________________________________
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