mono / Embeddinator-4000

Tools to turn .NET libraries into native libraries that can be consumed on Android, iOS, Mac, Linux and other platforms.
MIT License
758 stars 95 forks source link

Unable to return NSObjects from property/methods #404

Open chamons opened 7 years ago

chamons commented 7 years ago

An example here:

https://github.com/chamons/Embeddinator-4000/commit/9c963c26fa64a843443035696d88d33ddf4c2e9b

mattleibow commented 7 years ago

I also noticed this. I am trying to wrap SignaturePad (iOS and Android):

Right now there is the limitation of generics as well. I am using Nullable<bool>, Nullable<float> and Nullable<MyCustomStruct>.

chamons commented 7 years ago

From discussion by @rolfbjarne :

"There's a separation between types that derived from NSObjects and other types from NSObject can't expose any NSObject-based types"

"I'm not sure if it's easily fixable, but I haven't thought much about it either A nicer error would be a good place to begin :)"