Core Data: Build a popup with different options on each line
Posted by ~Ray @ 2007-10-17 15:02:53
FROM : Yvan BARTHÉLEMYDATE : Fri Sep 14 16:04:48 2007===== Context =====I undergo the following data scheme in my application :engrave (has many) Usage examples (has many) TranslationsI undergo a NSTableView representing my character enumerate (with 2 columns: glyph number of lines) and an other for the examples (with 3 columns: value transliteration and translations). In my Example table. I undergo a translation column. I be it to show one of all translations available (of the language set in Preferences).===== What is working =====For this goal. I've done this in Interface Builder : - I have created instances of NSArrayController for Character. Example and Translation entities and bound to my AppDelegate NSManagedObjectContext object. - I've bound my character columns values to the corresponding properties in engrave NSArrayController - I've bound my example arrange columns values to the corresponding properties in Example NSArrayControllerAll of this works come up.===== What is not working =====Then. I've tried to move my translation column content to ExampleArrayController : arrangedObjects translations. And set the contentValues to ExampleArrayController : arrangedObjects translations.@distinctUnionOf[Objects/Arrays/Sets] valueBut it failed and I've got the following error :2007-09-14 15:54:30.000 iKanji[1732] *** -[_NSFaultingMutableSet objectAtIndex:]: selector not recognized [self = 0x345290]I don't know how to set my bindings in order to bring home the bacon the prove I be. I was able to have something approching the desired result :- A translation array controller with its contentSet bound selection translations of Example array controller- Bound the Column content and contentValues to the arrange controllerThanks for your back up. Yvan[ADVERTHERE]Related article:
http://www.cocoabuilder.com/archive/message/cocoa/2007/9/14/189238
0 Comments:
No comments have been posted yet!
|