Re: [ SOLVED ] Core Data bindings: add entity to relationship
Re: [ SOLVED ] Core Data bindings: add entity to relationship
- Subject: Re: [ SOLVED ] Core Data bindings: add entity to relationship
- From: James Maxwell <email@hidden>
- Date: Tue, 10 Aug 2010 17:15:39 -0700
Yikes... I finally figured out what I'd done. In fact, my model and bindings were correct. The problem was in trying to access the object hierarchy elsewhere in my code. I had it in mind that I wanted something like Instrument.articulation.name, when in fact my data structure demanded that it be Instrument.articulations.articulation.name. The only reason I was getting the valueForUndefinedKey is because I was leaving out one link in the chain. Ugh...
Just in case anybody followed this little fiasco of mine, and was disappointed to reach the end without resolution, the only difference in IB was to assign my table's Selected Object (not Value) to [AssignedArticulation_controller arrangedObjects].articulation (not articulation.name). Of course, this makes sense, because it's a question of specifying a relationship to an Articulation entity, not just that entity's name.
Thanks again for your help.
J.
On 2010-08-09, at 2:00 PM, James Maxwell wrote:
>>
>>
>> As to the rest of it, I'm lost as to what you're talking about. What does "ran the assignment in the app" mean?
>
> Yeah, I just mean when I try to access the data programmatically from another part of the app -- when I iterate over the object hierarchy.
>
>> What's the exact text of the reported error? There is no such error as "valueUndefinedForKey". Maybe you're referring to "valueForUndefinedKey"?
>
> Sorry, yes, that's correct.
>>
>> It sounds like your popup button selection is getting bound to the 'name' property of the Articulation object, and you run into an exception because there's no setter for that property. As I said before, configuring NSPopUpButton bindings is hard.
>>
>
> hard it is. Cold comfort, I suppose.
> Thanks for your help.
>
> J.
>
>
>
>
>>
>>
>> _______________________________________________
>>
>> 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
>
> _______________________________________________
>
> 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
James B Maxwell
Composer/Doctoral Student
School for the Contemporary Arts (SCA)
School for Interactive Arts + Technology (SIAT)
Simon Fraser University
email@hidden
email@hidden
_______________________________________________
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