I am trying to bind with a provided library. I thought I had a breakthrough
today with some of the methods actually working. However, I still have
problems.

1. I can do:

var temp = GRGrabbaBarcodeDelegate();

 and that will compile. But if I do:

var temp = GRGrabbaButtonsDelegate();

I get a compile error of 'Can not resolve reference:
GrabbaBinding.GRGrabbaButtonsDelegate'. Both delegates are in the .h file
that came with the library. In my ApiDefinition.cs the definitions are done
in the same manner. When I browse the Grabba.dll generated by btouch, I can
see both the delegates. I can't see why one is compiling and one isn't. This
is just one example, several other classes are not compiling either.


2. Even though this:

var temp = GRGrabbaBarcodeDelegate();

will compile, it doesn't run properly. When I run the code in the simulator,
I get 'A type load exception has occurred.' when it tries to create the
class that this code is in. It doesn't actually get to the line of code. It
fails on the class that this code is in. 

3. If I have the following ( a protocol and then an interface which uses
that protocol), what is the correct way to set up the ApiDefinition for
btouch? This one is tricking me up.

@protocol GRGrabbaPreferencesProtocol <NSObject>
- (NSString*) baseNamepace;
@end

@interface GRGrabbaPreferences : NSObject <GRGrabbaPreferencesProtocol>
{
    GRGrabbaBarcodePrefs   *barcode;
}
@property (retain) GRGrabbaBarcodePrefs   *barcode;
@end

@interface GRGrabbaBarcodePrefs    : NSObject <GRGrabbaPreferencesProtocol>
@end



Thanks

Jeff

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Binding-Woes-tp4406123p4406123.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to