[MonoDevelop] Using C# code in Cocoa

Michael Hutchinson m.j.hutchinson at gmail.com
Sun Sep 27 13:21:41 EDT 2009


On Sun, Sep 27, 2009 at 12:51 PM, Rick Checketts <rick at checketts.eu> wrote:
> I have an existing C# dll (I have the original C# source code) that I
> would like to use in Cocoa.
>
> I know that we are not allowed to use dynamic libraries in the iPhone so
> is it possible somehow to use Mono Touch development tools to compile
> the code to native and then somehow link this code so that I can use
> Cocoa and my dll code to create a legal iPhone application?

By Cocoa I assume you mean Objective-C?

You can certainly link static C/C++ or Objective-C libraries into
MonoTouch apps and call into them using P/Invoke. I'm pretty sure it's
possible to do the converse, but it wouldn't be as straightforward.

The monotouch list would be the appropriate place to ask about this,
so I've cc'd it.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list