Hi all,
I am working with a Quartz Composer composition in my Cocoa project via a QCRenderer. I have had no problems using [myQCRenderer setValue:myValue forInputKey:myKey] to set values of inputs in the quartz composition. However, when I try to read the current values of inputs or outputs I have tourble.
I am trying to do something like:
NSNumber* myQuartzOutput = [_myQCRenderer valueForOutputKey:@"myOutput"];
NSString* output = [NSString stringWithFormat:@"%d", myQuartzOutput];
NSLog(output);
Using either valueForOutputKey or valueForInputKey, the printed output is always something along the lines of: "350369552" or "350365488" etc. Which my guess would be they are memory addresses or the result of null values being passed, I'm not sure. If I assign myQuartzOutput the value 19, then 19 prints just like it is supposed to, so that narrows the problem down a bit. Does anyone have any ideas what I'm doing wrong? Any help would be appreciated.
Thanks.