From: Scott T. <ea...@ma...> - 2009-07-07 19:29:52
|
>I really appreciate you sticking around once again Scott. Before my >original post I had tried a pool, and I had tried CFRelease, and I had >tried GC - but it turns out that I hadn't tried a pool _and_ CFRelease >_and_ GC in the same loop. It works! Great! Now that you've got that sorted out, and at the risk of being booted off the __ruby__cocoa list, let me offer a suggestion that may help. Rubycocoa is a very nice tool, but if you want to interact with Quartz 2D from a scripting environment, I might suggest using Python if you can stomach the language. Apple provides direct and integrated support for Quartz 2D from Python through a dedicated and supported API. See, for example: http://developer.apple.com/graphicsimaging/pythonandquartz.html and http://developer.apple.com/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_python/dq_python.html It makes me sad :'-( that the same interface is not available through Ruby but in this particular case, with lots of Quartz 2D work to be done, if you can force yourself to learn "enough Python" it may give you a better, more battle-tested interface. Scott |