[Mono-osx] Using 'out' in bindings

Miguel de Icaza miguel at novell.com
Fri Dec 31 16:55:04 EST 2010


Hello Regan,

    This patch is now on Git.

    Thanks for the fix!

Miguel

On Fri, Dec 31, 2010 at 4:25 PM, Regan Sarwas <rsarwas at gmail.com> wrote:

> I created a patch for maccore/src/generator.cs that fixes the bug described
> earlier in this thread, and doesn't appear to break any of the existing
> bindings.  Let me know if you accept this patch, I can submit a patch for
> NSGradient that  relies on it. else I will create a wrapper as described
> below.
>
>
> On Wed, Dec 29, 2010 at 5:18 PM, Miguel de Icaza <miguel at novell.com>wrote:
>
>>
>>> Once those lines were removed from NSGradient.g.cs, the new binding
>>> worked correctly.
>>>
>>
>> In cases like this, you need to use the [Internal] attribute on the
>> declaration, change the "out Foo" to IntPtr signatures, and write a wrapper
>> that does the conversion yourself to and form the IntPtr values.
>>
>> Miguel.
>>
>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101231/4df9bacb/attachment.html 


More information about the Mono-osx mailing list