The method LocationInView of NSView of Xamarin.Mac throws the exception "Value cannot be null", but the apple documentation says "Specify nil to return the point in the coordinate system of the window"
That is absolutely a bug and I've filed it here:
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.
Thanks, I will appreciate the workaround.
It works. Thanks
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies