I have a window with a custom NSView, and I want to use QCRenderer
to draw a qtz file. I know this can be done using QCView much
easier, but I need to run a Cocoa method on mouseDown and I can't
see how to do that with QCView.
So when I run the following code I get the basic qtz being drawn,
but there is a memory leak I cannot locate, and the compositions
time is incorrect. Basically the clock in the qtz keeps getting
reset every few seconds. Any help is appreciated, thank you.
You're creating a new QCRenderer every frame in _renderGLScene, which
is not destroyed. You should not create one every frame in the first
place. Check out /Developer/Examples/Quartz Composer for examples of
use the QCRenderer API.