Embeddinator-4000 icon indicating copy to clipboard operation
Embeddinator-4000 copied to clipboard

Unable to return NSObjects from property/methods

Open chamons opened this issue 8 years ago • 2 comments

An example here:

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

chamons avatar Jun 22 '17 20:06 chamons

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

  • source: https://github.com/xamarin/SignaturePad
  • NuGet: https://www.nuget.org/packages/Xamarin.Controls.SignaturePad
  • build: https://jenkins.mono-project.com/view/Components/job/Components-SignaturePad/lastSuccessfulBuild/Azure/

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

mattleibow avatar Jun 22 '17 20:06 mattleibow

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 :)"

chamons avatar Jun 22 '17 21:06 chamons