Moving from popup to text field cell in table view core data binding causes exception
Moving from popup to text field cell in table view core data binding causes exception
- Subject: Moving from popup to text field cell in table view core data binding causes exception
- From: Peter <email@hidden>
- Date: Wed, 27 Jun 2012 17:51:34 +0200
Hi,
I am currently working on a quick and dirty CD database-like app using core data, very early in the development.
I have two entities with properties and a relationship:
(1) recording
performer
recording date
relationship: recording-work (to-1, i.e. every recording contains one work)
(2)
composer
title
opus number
inverse relationship: work-recording (to-many, i.e. there may be many recordings of one single composition/work)
For experimentation with the model I set up a standard master-detail view using the assistant.
The work column - as expected - is setup using a popup cell, I made it show the work's title as the value, pretty basic, using the absolutely standard array controller etc., everything works, no problem.
Now, I'd like to replace the popup cell by a text field cell, to simply show the title - but for the life of me, I can't understand why it seems to be impossible to setup a binding to the property title (or any other) of the entity work.
Binding the recordings controller's arranged objects to the keypath work.title does not work, as does any other binding I tried. I always get the exception
"this class is not key value coding-compliant for the key content"
I am sure I am doing something terribly wrong, but I didn't manage to come up with an explanation/solution either in the docs or on the web.
How should I solve this problem, with or without bindings?
Thanks a lot for any pointers!
Peter
_______________________________________________
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