Binding to Array of Persistent Objects
Binding to Array of Persistent Objects
- Subject: Binding to Array of Persistent Objects
- From: "William T. McVay" <email@hidden>
- Date: Mon, 25 Mar 2013 10:41:02 -0700
In Xcode 4.5.2 on Mac OS X 10.7.5, I have built an array of objects that point into a persistent-object context that obeys KVC. I want to select one object from this array based on displaying one of its direct valueForKey: attributes in a pop-up button. In the binding inspector's Content Value area, can I refer in the Model Key Path field directly to a key for the persistent object, if I have bound the array controller Content to the object array I want in the window controller (File's Owner)? My first try crashed the application when I ran this plugin in it.
I had earlier succeeded with a test case based on an example in a Cocoa textbook. It uses an array of objects with literal values for each key, but the class is defined within the example instead of being a pre-existing object context. Before I dive into the debugger, I want to see if I am on the right road in general.
Thanks,
Tom
W. T. McVay, (707) 987-6567
email@hidden, www.putahcreek.com
Hidden Valley Lake, CA 95467
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden