I have a 3rd party framework that we have bound to and are leveraging successfully.
One of the API calls expects us to pass in a type name or obj-c class as a parameter.
Example:
InitializeWithClassName(NSString* className)
Our c# class inherits from the bound type (ex. BoundDelegateClass)
[Register("MyDelegateClass")] class MyDelegateClass : BoundDelegateClass { ... }
The framework is essentially doing an internal check for conformsToProtocol(), making sure that it adopts UIApplicationDelegate. Their implementation of BoundDelegateClass adopts this protocol. In our case, we descend from their class; so one would assume that we do as well.
The call to conformsToProtocol is failing on that check.
I know that we can use the [Adopts("xxx")] attribute to flag a registered type as conforming to a particular protocol, but it still fails when specifying it on our descendent class.
Any thoughts or ideas? I have been fairly generic regarding the code examples... I can post more details if needed.
For reference, another user had a similar issue; the framework we are talking about is GoodDynamics, and the particular class is GDIOSDelegate. There was no real resolution posted on that forum post.