locked
NSView.LocationInView doesn't accept null RRS feed

Answers

  • User35201 posted

    That is absolutely a bug and I've filed it here:

    https://bugzilla.xamarin.com/show_bug.cgi?id=61101

    In the past the Apple headers did not sufficiently describe APIs to note what accepts null, and we didn't always get it right.

    It's a trivial fix (https://github.com/xamarin/xamarin-macios/pull/3103) and I can provide a work around if you need it for your project until our next major release.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, December 14, 2017 7:24 PM
  • User35201 posted

    Try this:

    https://gist.github.com/chamons/5b36f57c40bb05cd612ff2e3d2e5df86

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, December 14, 2017 7:56 PM

All replies

  • User35201 posted

    That is absolutely a bug and I've filed it here:

    https://bugzilla.xamarin.com/show_bug.cgi?id=61101

    In the past the Apple headers did not sufficiently describe APIs to note what accepts null, and we didn't always get it right.

    It's a trivial fix (https://github.com/xamarin/xamarin-macios/pull/3103) and I can provide a work around if you need it for your project until our next major release.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, December 14, 2017 7:24 PM
  • User84937 posted

    Thanks, I will appreciate the workaround.

    Thursday, December 14, 2017 7:27 PM
  • User35201 posted

    Try this:

    https://gist.github.com/chamons/5b36f57c40bb05cd612ff2e3d2e5df86

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Thursday, December 14, 2017 7:56 PM
  • User84937 posted

    It works. Thanks

    Thursday, December 14, 2017 9:19 PM