[Mono-bugs] [Bug 670844] Error while adding subview using Animator

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 10 02:35:05 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=670844

https://bugzilla.novell.com/show_bug.cgi?id=670844#c3


Geoff Norton <gnorton at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |miguel at novell.com

--- Comment #3 from Geoff Norton <gnorton at novell.com> 2011-02-10 07:35:04 UTC ---
The above patches fix the issue here.  Whats going on is Animator creates a
proxy object, that we cannot differentiate from the SharedContentView object
(handles differ, but [self class] is identical) and we presume that this object
is not a direct binding, and direct the call the NSView, but since the Animator
proxy isn't really a SharedContentView, the call to AddSubview crashes when
trying to access internal members it thinks exist on the type.

We can work around this by annotating any method which returns these type of
proxys with an [return: Proxy] attribute, and setting IsDirectBinding to true
in the wrapper, this will ensure we go to the proxy implementation which is
responsible for connecting the appropriate plumbing.

I'm not 100% happy with the approach, but I cannot think of anything better at
this time.

CC miguel for comments, and patches here for discussion/testing.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list