I’m in the process of trying to create a binding for the WikitudeAPI in order to provide AR capabilities in my app.
So far I’ve tried to keep it very simple, I’m just binding a few of the methods and the minimum of classes. One of the classes is declared as such
@interface WTPoi : NSObject<MKAnnotation> {
}
To create the binding I’ve declared my binding as
using MonoTouch.Foundation;
using MonoTouch.MapKit;
namespace AR {
[BaseType(typeof(MKAnnotation))]
interface WTPoi {
}
}
When I run btouch against it I get the an abort trap error
“line 2: 1959 Abort trap”
I’ve tried using other types as the BaseType just to see and they mostly work, any ideas as to what I’m doing wrong?
Turns out that its a bug in the [Model] inheritance in btouch.
Declaring the interface as:
Works fine but you lose the inheritance from MKAnnotation.