The WebKit frameworks' WebView class has a property to access the current WebScriptObject. I know that you can invoke JS methods using this object, but is there a way to receive asynchronous JS callback notifications?
I want to render something in the WebView and the script has a callback function when it finishes, but how do I get this notification back to my Cocoa app (without polling a var)?