[Mono-osx] [MonoMac] Misc Patches

Miguel de Icaza miguel at novell.com
Tue Jan 18 14:22:36 EST 2011

Hello Regan,

> 1) First off the samples do not build on a clean clone of github.
>  Samples.patch fixes that.


> 2) NSAffineTransform:  Added a missing struct, and finished the bindings for
> this class. In the mac libraries, part of this class is defined in
> Foundation, and part in Appkit (as extension methods).  Since this class is
> only available in OS X, and it all ends up in monomac.dll, I saw no need to
> separate the class. let me know if it should be otherwise.

Is there a reason why we cant just use the existing CGAffineTransform
class defined in CoreGraphics instead?   It already has a bunch of
useful methods defined, and we could unify some code.

> 3)  NSBezierPath: Added manual bindings to complete the class.  I struggled
> with the packedGlyph array, and decided it was best to expose this as a
> "black box" IntPtr.  It probably won't be needed from most user code, and if
> you want a packed array (as I do in my sample), you are going to get it as
> an IntPtr from some other cocoa object. I have verified it works correctly.
>  I will provide docs for the manual bindings shortly.

Is there a reason to drop the CreateBezierPath() method?  Does the
plain constructor just work?

I applied the Bezier patch.


More information about the Mono-osx mailing list