[Mono-osx] Dumbarton and C# subclasses

Will Cosgrove will at everydaysoftware.net
Sun May 13 03:02:48 EDT 2007


Hi All,
I'm new to the list so I apologize in advance if this topic has been  
covered.  I'm currently prototyping some C#/Cocoa code for  
feasibility and I have run into a bit of a snag.  I have a C# class  
which I subclass.  Let's call them class A and class B : A.  I create  
the bridge class using code from the Dumbarton sample code like so:

[...]
MonoClass *monoClass = [DBMonoEnvironment monoClassWithName:"B"  
fromAssembly:myAssembly];

The problem I'm having is when I try to invoke any methods in the  
super class, A, Dumbarton can't find those methods and I get the  
following error:

2007-05-12 22:58:29.267 MyTestApplication[15491] Dumbarton could not  
find the method Name
2007-05-12 22:58:29.267 MyTestApplication[15491] *** Uncaught  
exception: <DBMethodNotFound> Dumbarton could not find the method Name

The way I'm invoking the method Name is like so:

MonoString *name = (MonoString*)[self invokeMethod:"Name" withNumArgs: 
0];

So I guess my question is, is this possible using Dumbarton and if  
so, how does one go about getting it to work. =)

Thanks in advance,
Will C.


More information about the Mono-osx mailing list