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 protected]) >> >> 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: >> http://lists.apple.com/mailman/options/cocoa-dev/jbmaxwell%40rubato-music.com >> >> This email sent to [email protected] > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/jbmaxwell%40rubato-music.com > > This email sent to [email protected] James B Maxwell Composer/Doctoral Student School for the Contemporary Arts (SCA) School for Interactive Arts + Technology (SIAT) Simon Fraser University [email protected] [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
