I am trying to tie together a QC composition and a
NSArrayController so that whenever the array controller has a
selection the corresponding data is sent to the 'String' published
port in my composition.
I've got IBOutlets to both the QCView and the NSArrayController. I
tried to use the following to set up the binding in awakeFromNib()
it doesn't work. i get the following error at runtime:
*** NSRunLoop ignoring exception '[<QCView 0x3c80d0>
setValue:forUndefinedKey:]: this class is not key value coding-
compliant for the key patch.String.value.' that raised during
posting of delayed perform with target 374bfe0 and selector
'invokeWithTarget:'
I tried @"String.value" as the bind: argument as well, but that
simply causes the exception to be thrown immediately and the app
crashes.
The issue that you're not following the MVC model: the composition is
the model, the QCPatchController the controller, and the QCView the
view. You cannot bind UI controls to the QCView directly. You need to
bind them to the controller, which takes care of updating the model &
view accordingly.