[Mono-osx] Using 'out' in bindings

Regan Sarwas rsarwas at gmail.com
Fri Dec 31 16:25:06 EST 2010

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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101231/89ae9765/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generator.cs.ret_void.patch
Type: application/octet-stream
Size: 684 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20101231/89ae9765/attachment.obj 

More information about the Mono-osx mailing list