[Mono-osx] Dumbarton and C# subclasses
Allan Hsu
allan at counterpop.net
Wed May 16 19:22:34 EDT 2007
I'll try to look into this sometime soon, but I'm a little busy right
now. You should be able to compile Dumbarton out of SVN against the
1.2.3.1 Mono release; my custom universal builds should no longer be
necessary.
What sort of build errors are you getting with 1.2.4?
-Allan
--
Allan Hsu <allan at counterpop dot net>
1E64 E20F 34D9 CBA7 1300 1457 AC37 CBBB 0E92 C779
On May 16, 2007, at 1:16 AM, Hawston LLH wrote:
> anyone successfully build Dumbarton with latest Mono 1.2.4?
> Apparently, I can only manage to compile Dumbarton with the Allen
> Hsu given version svn-r64487-universal of mono http://
> lists.ximian.com/pipermail/mono-osx/2006-September/000601.html.
> However, this version of mono seem not work on Generic List. any clue?
>
> hawston
>
>
> On 5/13/07, Hawston LLH <hawston at gmail.com> wrote:
> First, i noticed 2 possible errors.
>
> 1) you miss out namespace for the class
> MonoClass *monoClass = [DBMonoEnvironment
> monoClassWithName:"<missing namespace>.B" fromAssembly:myAssembly];
>
> 2) you miss out brackets for the function
> MonoString *name = (MonoString*)[self invokeMethod:"Name()"
> withNumArgs:
> 0];
>
> regards
> hawston
>
>
> On 5/13/07, Will Cosgrove <will at everydaysoftware.net > wrote: 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.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
More information about the Mono-osx
mailing list