Is anyone successfully using WindowScriptObject in WebView to have Javascript communicate with your C# classes in a MonoMac project? I&#39;m trying to do things like this:<div><br></div><div>...</div><div><br></div><div>webView.WindowScriptObject.SetValueForKey(new NativeMessageReceiver(),new NSString(&quot;NativeMessageReceiver&quot;));</div>
<div><br></div><div>...</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">                </span>NSString handleMessage(NSString messageText)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>{</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Console.Out.WriteLine(&quot;Got message from page [&quot; + messageText + &quot;]&quot;);</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>return new NSString(&quot;OK&quot;);</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>bool isSelectorExcludedFromWebScript(Selector s)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>{</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>return false;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div></div><div><br></div><div>But &quot;isSelectorExcludedFromWebScript&quot; and &quot;handleMessage&quot; never get called.</div>
<div><br></div><div>Any tips?</div>