1

I am trying to follow "Binding Controls to Input Ports" of Quartz Composer Programming Guide.

The document says :

5.Click “Bind to” and then choose Patch Controller in the “Bind to” popup menu.

6.Enter patch in the Controller Key text field.

7.Enter text.value in the Model Key Path text field.

In my project of Xcode (4.2 &) 4.3, the Controller Key text field is disabled. The Model Key Path text field requires an object of QCPatch class, which I don't think I have a clue.

Should I install Xcode 3.x and handle this & convert to 4.x? Any advice ?

4

2 回答 2

1

I am experiencing the same issues, however via the kineme forums I have found a work around:

using the Object Controller instead of the Qc Patch Controller:

  1. make a new cocoa project...
  2. add quartz framework via buid phases tab and import the framework to your project either in the pre compile header, or app delegate...
  3. add qc view to your xib and load your composition
  4. add object controller to your xib...
  5. change object controllers class to "QCView" without quotes.
  6. control drag your object controller to your qc view and select "content"
  7. add a slider and bind its value to your object controller and set its model key path to "patch.Text.value" without quotes.....

see this for the full thread on this topic.

于 2012-02-20T15:56:24.537 回答
0

在 xib 文件中选择 QCView

属性检查器 -> 选中“转发所有事件”

希望能帮助到你

于 2012-06-17T14:51:20.500 回答