Reputation: 68840
I have a Objective-C assembly, "SomeThing.a"
Is there a way to automatically generate the MonoTouch binding c# and or .dll for this assembly?
I do not have the source code for the "something.a"
Upvotes: 0
Views: 524
Reputation: 32694
If you have the associated header file for it, you can try using the MonoMac parser that does some of the heavy lifting for you and generates a starting point for your binding.
The parser is in monomac/src/parser.cs
Run it like this:
gmcs parser.cs mono parser.exe yourHeader.h
It will generate the file "gen.cs" that contains the parsed header file.
If you have no source code for the .a file and you still want to bind some of the APIs, you can get an idea of what is in this class using ClassDump:
http://www.cocoadev.com/index.pl?ClassDump
Upvotes: 2