[MonoTouch] Binding issue
Morph268
angriawan at hotmail.com
Thu Mar 1 05:21:44 UTC 2012
Hello,
I am newb here
I have problem to get my simple binding project working.
I created a super simple class in native project. When I tried to access
member value from my MT project, i got default values <NaN for numValue and
null for stringValue>
I know this must be some a simple thing that I forgot.
Any idea what could cause the problem?
Is there any documentation somewhere that describes how to debug binding
issue?
thank you much
lib.h
@interface MyLib : NSObject
- (double) numValue;
- (NSString *) stringValue;
@end
lib.m
@implementation MyLib
- (double) numValue {
return 0;
}
- (NSString *) stringValue {
return @"Hello World";
}
ApiDefinition.cs
[BaseType (typeof (NSObject))]
interface MyLib {
[Export ("numValue")]
double NumValue();
[Export ("stringValue")]
string StringValue();
}
--
View this message in context: http://monotouch.2284126.n4.nabble.com/Binding-issue-tp4434091p4434091.html
Sent from the MonoTouch mailing list archive at Nabble.com.
More information about the MonoTouch
mailing list