XamMac doesn't contains binding for rectArrayForGlyphRange:withinSelectedGlyphRange:inTextContainer:rectCount: method of NSLayoutManager class. I was able to move this call into native dynamic library and make a call to this function from C# code.
This method returns NSRectArray which doesn't have representation in XamMac. And I stuck at this point. How can I pass NSRectArray to C#?
I was thinking of returning NSArray of NSRect as described here http://goo.gl/xMQbHU . I could get NSArray in C# but how will I get back NSRect from NSArray? There is no NSRect representation in C#. RectangleF is structure and cannot be initialized via NSObject or IntPtr.