[Mono-osx] Using 'out' in bindings
Miguel de Icaza
miguel at novell.com
Fri Dec 31 16:55:04 EST 2010
This patch is now on Git.
Thanks for the fix!
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
> 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.
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-osx