quartz composer view output: How can I get immediately the new values of outputs, if they change?

StackOverflow https://stackoverflow.com/questions/2753780

  •  02-10-2019
  •  | 
  •  

Question

I created a cocoa program with a quartz composer view. I can get the output values with:

[qcView valueForOutputKey:@"Output"]

But how can I get immediately the new values of outputs, if they change?

Was it helpful?

Solution

Using Key-Value Observing, your class can be sent a message automatically when the value changes.

For a QCView, you need to connect a QCPatchController instance (which is a layer that adds KVO compliance) --- see http://developer.apple.com/mac/library/technotes/tn2005/tn2146.html for details.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top