[Mono-osx] [MonoMac] Misc Patches

Regan Sarwas rsarwas at gmail.com
Sun Jan 16 16:28:52 EST 2011


I've attached 3 patches i need for some samples I'm working on.  Hope they
are helpful in general.  They can be applied or ignored in any order.

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.

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110116/82a1820d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NSAffineTransform.patch
Type: application/octet-stream
Size: 12874 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20110116/82a1820d/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Samples.patch
Type: application/octet-stream
Size: 6200 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20110116/82a1820d/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NSBezierPath.patch
Type: application/octet-stream
Size: 9257 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20110116/82a1820d/attachment-0005.obj 


More information about the Mono-osx mailing list