title: How can my Cocoa application be notified of onClick events in a WebView?
body: <p>I'm loading a <code>WebView</code> in my OSX application and want to receive a notification in my app when the user clicks on an element in the <code>WebView</code>. (The <code>WebView</code> is loading a web page that is part of my web application.)</p>
  
  <p>Is this possible?</p>
  
  <p>I can think of a way to do it (poll a javascript value that gets set on the <code>click</code> event) but I'm hoping there's a more sensible way!</p>