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”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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