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: