Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QCRenderer Leak



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.

You can use a Mouse patch in the composition, and publish its button output as an output of the composition, then observe it - see end of this technote:
http://developer.apple.com/technotes/tn2005/tn2146.html


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.




________________________________________________________
Pierre-Olivier Latour                            email@hidden
Quartz Composer Architect                Graphics & Imaging Team

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >QCRenderer Leak (From: Kyle Killion <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.