could you: Make one wrapper for GDiOSDelegate Make one wrapper for UIApplicationDelegate (you have this already)
Use the delegate pattern to make a new GDiOSDelegate, have whatever you are using call THAT object, and relay the calls back to your main class? On Tue, Jul 10, 2012 at 4:23 PM, tkacem <[email protected]> wrote: > Hi Nic, > > Thanks for your reply. The interface definition is as follows: > > *@interface GDExtended : NSObject <UIApplicationDelegate,GDiOSDelegate> > > - (void) handleEvent:(GDAppEvent *)anEvent; > - (BOOL)application:(UIApplication *)application > didFinishLaunchingWithOptions:(NSDictionary *)launchOptions; > > @end* > > > *@implementation GDExtended > > - (id)init > { > self = [super init]; > if (self) { > // Initialization code here. > } > > return self; > } > > - (void) handleEvent:(GDAppEvent *)anEvent > { > > } > > - (BOOL)application:(UIApplication *)application > didFinishLaunchingWithOptions:(NSDictionary *)launchOptions > { > return YES; > } > > @end > * > > I am trying to wrap this in c# knowing that c# does not allow multiple > implementation. I wrote the wrapper for this interface in c# (I need the > GDiOSDelegate in order to create the event handler method which should > communicate with components from UIApplicationDelegate class). > The problem is that when I inherit GDExtended in a sample monotouch > application that uses the created Dll, I get an error that my class does not > implement UIApplicationDelegate. > > Your prompt attention to this message is highly appreciated. > Thanks, > Thabet > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Binding-an-interface-that-conforms-to-multiple-protocols-tp4655661p4655901.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise b. http://www.fastchicken.co.nz/ Earnest: Self-employed? Track your business expenses and income. http://earnestapp.com Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket. http://goo.gl/IuBU Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2 _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
