Ok I did get this working.

I ended up having to copy the delegate protocol definitions into the a base
binding class. I'm not sure, but I think they were supposed to generate into
the class automatically, but they didn't. Then I read the bottom of  this
page
<http://docs.xamarin.com/ios/Guides/Advanced_Topics/Binding_Objective-C_Libraries>
  
where it talks about inheriting protocols and how you used to have to copy
the definition in for inherited protocols (but apparently not any more). In
my case, it wasn't exactly protocol inheritance but similar. For the record
this was my basic situation:

// the delegate definition
[BaseType (typeof (NSObject))]
interface RMTileSource 

// this is where the weak and strong typed delegate props are defined for
RMTileSource, but I had to 
// copy the RMTileSource protocol binding definitions into this interface
too
[BaseType (typeof (NSObject))]
interface RMAbstractMercatorTileSource

[BaseType (typeof (RMAbstractMercatorTileSource))]
interface RMAbstractWebMapSource

and then in my consuming project

// this is where I can override the RMTileSource methods as needed
class MyWebSource : RMAbstractWebMapSource

Thanks Miguel and Jeff for the help along the way.

Dennis





--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Bindings-for-MapBox-tp4657589p4657643.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