Open chamons opened 6 years ago
NSButton has NSControl which has NSAccessibility so it should have a get and set, but it doesn’t, might be a generator bug. At first glance the bindings look right.
@chamons which branch ? Bindings for NSControl
does not implement NSAccessibility
protocol in stable (15.8 / xcode10.1)
So things are a bit different than XI.
NSAccessibilityElementProtocol
defines as a getter only, while NSAccessibility
defines it with a getter and setter. Both are applied to NSView
(from which all controls gets this).
Yeah, sorry for the delay, it gets it from NSView:
https://github.com/xamarin/xamarin-macios/blob/master/src/appkit.cs#L4674 https://github.com/xamarin/xamarin-macios/blob/master/src/appkit.cs#L15291
This code works in ObjC:
But this does not in C#:
It comes off the full set in: