PDA

View Full Version : Perl bindings for Quartz?




bobrik
Feb 10, 2009, 07:10 AM
Hi,

I have a Perl script that uses Perl bindings for Cairo and Gtk+, but I don't want to install that on my OS X machine, I would rather port it to Quartz (and the script is written modularly to be ported easily).

I googled for using Quartz from Perl and came with nothing, but Quartz already has Python bindings (demonstrated by Apple on their dev site) - is there really no Perl binding for Quartz?

Thanks for any answer.



robbieduncan
Feb 10, 2009, 07:17 AM
Are you sure that the Python bindings are directly to Quartz? I thought they were bindings to Cocoa...

If the latter is true then there are Perl bindings to Cocoa available (http://camelbones.sourceforge.net/index.html). These should let you access Quartz via the normal Cocoa classes...

bobrik
Feb 10, 2009, 09:26 AM
Are you sure that the Python bindings are directly to Quartz? I thought they were bindings to Cocoa...

Well, I don't really know, I am referring to this: Python Bindings for Quartz 2D (http://developer.apple.com/DOCUMENTATION/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_python/chapter_17_section_1.html)

If the latter is true then there are Perl bindings to Cocoa
Thanks a lot for the link, I hope I will be able to cook it up, the only problem is I don't know Perl, but hopefully I will get through it :-)

robbieduncan
Feb 10, 2009, 10:30 AM
Hmm, OK those look like binding directly in CoreGraphics... Not sure if CamelBones will support that or not, it's not something I've ever actually used.