• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Core Data: Build a popup with different options on each line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data: Build a popup with different options on each line


  • Subject: Core Data: Build a popup with different options on each line
  • From: Yvan BARTHÉLEMY <email@hidden>
  • Date: Fri, 14 Sep 2007 16:04:48 +0200

===== Context =====
I have the following data scheme in my application :

Character (has many) Usage examples (has many) Translations

I have a NSTableView representing my character list (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 have a translation column. I want it to display 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 Character NSArrayController
- I've bound my example string columns values to the corresponding properties in Example NSArrayController


All of this works well.

===== What is not working =====
Then, I've tried to bound my translation column content to ExampleArrayController : arrangedObjects.translations.
And set the contentValues to ExampleArrayController : arrangedObjects.translations.@distinctUnionOf[Objects/Arrays/Sets].value


But 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 achieve the result I want. 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 array controller


Thanks for your help.
Yvan
_______________________________________________

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


  • Prev by Date: NSTextView, partial views of NSTextStorage
  • Next by Date: Re: Pages document
  • Previous by thread: Re: NSTextView, partial views of NSTextStorage
  • Next by thread: How to embed framework in app with setuid helper
  • Index(es):
    • Date
    • Thread