I have the following Obj-C .h, what is the correct way to bind?
@interface iSmart : NSObject<EAAccessoryDelegate>{
id<iSmartDelegate> delegate;
}
@property(nonatomic, assign) id<iSmartDelegate> delegate;
-(id)init;
@end
__________________________________________________________________________________________
@class iSmart;
@protocol iSmartDelegate <NSObject>
-(void) iSmartDidConnect;
-(void) iSmartDidDisconnect;
-(void) cardStatusChanged:(unsigned char)status;
@end
__________________________________________________________________________________________
In this moment I have this for the protocol and interface:
[BaseType (typeof(NSObject))]
[Model]
interface iSmartDelegate
{
[Export("iSmartDidConnect")]
void iSmartDidConnect();
[Export("iSmartDidDisconnect")]
void iSmartDidDisconnect();
[Export("cardStatusChanged:")]
void CardStatusChanged(Byte status);
}
[BaseType (typeof (EAAccessoryDelegate),
Delegates=new string [] { "WeakDelegate" },
Events=new Type [] { typeof (iSmartDelegate)})]
interface iSmart
{
//@property(nonatomic, assign) id<iSmartDelegate> delegate;
[Export("delegate"), NullAllowed]
NSObject WeakDelegate { get; set; }
[Wrap("WeakDelegate")]
iSmartDelegate Delegate { get; set; }
//-(id)init;
[Export("init")]
NSObject init();
}
I'm getting this error when i try to build the project in Xamarin Studio Error BI0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com (BI0000)
Thanks