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



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
References: 
 >Key path question (From: Giovannini <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.