Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key path question



Hello,

Thank you once again for the quick reply. I don't believe I described the situation well enough.

The members have no known name, they are accessed in QC via "Structure Index Member". How would a UI control or even Obj-C code populate or bind to that value?

"port key".value."member"

What would the member name be?

I added QC elements that push the output of a "String Components" when the patch is in an initial state (movie duration is zero). So I tried then binding to InPort.value.component_0 but that still did not work. And I tried placing a .value after the key path as well.

Dave



I have a structure with members accessed by index in the qtz file. The port that uses the structure is exposed. I would like to be able to specify the key path in the Cocoa bindings of an edit field. I could not find in Apple's documentation how you would access a sub key by index.

Edit field's bindings

Bind To: QCPatchController
Controller Key: patch
Model Key Path: InPort[0].value;



Model key path has to be "port key".value

Then if the value is actually a structure, that should work:

"port key".value."member" (no quotes)


________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Architect Graphics & Imaging Team




_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.