Hi,
I am trying to integrate a wrapped Objective-C dll in MonoTouch. So far, I
created the dll somehow successfully I believe. But the problem is that I
have an error, I could not overcome so far, during the integration. I
suspect it has to do with this piece of objective-c code that is defining an
class that implements two interfaces (which is not possible in c# according
to my findings).
I was following the example showing the integration of the same
Objective-API whose correspondant code is:
// File BreadcrumbAppDelegate.h
#import <UIKit/UIKit.h> #import <GD/GDiOS.h>
@interface BreadcrumbAppDelegate : NSObject <UIApplicationDelegate,
GDiOSDelegate> {
}
UIWindow *window;
UINavigationController *navController;
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController
*navController;
@property (nonatomic, assign) GDiOS *gdLibrary;
///////////////////////////////////////////////////
// File BreadcrumbAppDelegate.m
@synthesize gdLibrary;
NSString* kappId = @"com.good.gd.example.breadcrumb";
NSString* kappVersion = @"1.0.0.0"; #pragma mark -
#pragma mark Good Libraries application lifecycle
-(void)handleEvent:(GDAppEvent*)anEvent {
// Called from gdLibrary when events occur, such as authorisation.
}
#pragma mark - #pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
// Add the view controller's view to the window and display.
[window addSubview:navController.view]; [window makeKeyAndVisible];
return YES;
}
///////////////////////////////////////////////
// File main.m
#import <UIKit/UIKit.h> #import <GD/GDiOS.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
*[GDiOS
initialiseWithClassNameConformingToUIApplicationDelegate:@"BreadcrumbAppDelegate"];
*
int retVal = UIApplicationMain(argc, argv, nil, nil); [GDiOS finalise];
[pool release]; return retVal;
}
The error arises in the line highlighted in Bold.
Any help would be greatly appreciated.
Thanks,
Thabet
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Integrating-a-Wrapped-Objective-C-dll-in-MonoTouch-tp4655450.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch