• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quartz Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Quartz Bindings (From: Jay Kickliter <email@hidden>)

  • Prev by Date: Re: Sending message to parent object
  • Next by Date: Core Data - fresh data for text field not connected to array controller
  • Previous by thread: Quartz Bindings
  • Next by thread: Re: Quartz Bindings
  • Index(es):
    • Date
    • Thread