The quartz composition key paths are going to be:

@"patch.pitch.value"
@"patch.roll.value"

If you are using a QCCompositionLayer, you can simply call [layer setValue:[NSNumber numberWithFloat:pitch] forKeyPath@"patch.pitch.value"] or even more simply [layer setValue: [NSNumber numberWithFloat:pitch] forInputKey@"pitch"].

If you are using a QCView and a Patch Controller, then you'll need to look at this: http://developer.apple.com/technotes/tn2005/tn2146.html

HTH,

-Matt



On Dec 24, 2008, at 7:08 AM, Jay Kickliter wrote:

I have a quartz patch with two inputs, "pitch" and "roll". I read through the quartz bindings tutorial, and I'm able to bind NSSliders to the inputs with no problem. But I don't want to bind the inputs to UI elements. I need to bind them to two floats in my AppController, also called "pitch" and "roll". I can't seem to figure out how to bind a Quartz Controller to my AppController. The documentation doesn't tell me anything either. Any ideas?

Jay
_______________________________________________

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to