Core Data Binding question: How to implement unidirectional or read-only binding
Core Data Binding question: How to implement unidirectional or read-only binding
- Subject: Core Data Binding question: How to implement unidirectional or read-only binding
- From: Peter Bates <email@hidden>
- Date: Sun, 23 Apr 2006 16:32:07 -0700
Before I do things the hard way, just thought I'd ask of those more
experienced in the core data and bindings worlds if there might be an
easy way around this problem:
I have a core data application in which a comboBox is bound to two
array controllers. The combo boxes' content is bound to the
controller A arrangedObjects, the contentValue is bound to controller
A arrangedObjects.name key, and the value is bound to arrayController
B's selection.name. The problem is that I'm allowing the user to
enter a partial name in the comboBox and using a delegate method to
fetch matching names, setting the fetched array as the comboBoxes'
arrayController A's content.
The hitch is that the partial name typed by the user is propagated
back to the object. I think what I really need here is a
unidirectional or read only binding. Otherwise I'll probably have
to construct a parallel array based on the fetched data and use the
parallel array as the arrayController's content. I have a feeling
this would be picking the hard and error prone way to accomplish the
desired end. I'll appreciate any advice. I've been picking through
the documentation, searching the archives etc., but haven't yet
recognized the answer if it's there.
Thanks,
Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden