Re: Quartz Bindings
Re: Quartz Bindings
- Subject: Re: Quartz Bindings
- From: Matt Long <email@hidden>
- Date: Fri, 26 Dec 2008 21:49:43 -0700
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 (email@hidden)
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:
This email sent to email@hidden