Re: [us...@lists.monobjc.net] javascript calling back to C#

2010-06-07 Thread Laurent Etiemble
Hello, You cannot implement protocol at runtime (either in Objective-C or in .NET). If you want to use the WebScripting protocol through the IWebScripting interface, you have to find out which class implements it, and how to obtain it. I have found some samples on calling JavaScript from Cocoa, b

Re: [us...@lists.monobjc.net] javascript calling back to C#

2010-05-25 Thread Eric Slosser
I've found Monobjc.WebKit.IWebScripting, a sub-class of IManagedWrapper. It's marked as [ObjectiveCProtocol("WebScripting")]. I'm now looking for clues on how to use this class (or should I call it an 'interface'?) On May 24, 2010, at 2:43 PM, Eric Slosser wrote: > I'm porting a .NET app th

[us...@lists.monobjc.net] javascript calling back to C#

2010-05-24 Thread Eric Slosser
I'm porting a .NET app that uses the WebBrowser control, and has Javascript that calls back into the C#. It does this by stating "[ComVisible(true)] public class Foo { }", by having an member variable 'browser' of type System.Windows.Forms.WebBrowser" in Foo, and by calling "browser.ObjectForS