• 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
Indirectly Related Core Data Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indirectly Related Core Data Bindings


  • Subject: Indirectly Related Core Data Bindings
  • From: Mathieu Tozer <email@hidden>
  • Date: Thu, 8 Jun 2006 09:56:18 +1000

Hi there,

I followed the new Core Data video tutorial, and learnt how to bind a simple user interface to the data model in a document based application. I made my own simple app, but this time with a 3 tiered level data model, Language<--->>Word <--->>ExampleSentence.

While I am making a non-document based application, I figured the same architecture of binding as in the tutorial would be ok, and I built and bound the user interface as so, connecting to the ApplicationDelegate instead of file's owner etc. I can add and delete languages, and for the most part words, but sometimes I have to create a new language before I can add and delete words, and the example sentences part sometimes lets me add and delete, but they never depend on the specific word. The terminal window throws these errors:
When changing languages in the view:
2006-06-08 09:37:58.286 Words[20214] Error setting value for key path selectionIndexes of object <NSArrayController: 0x37d0b0>[entity: Language, number of selected objects: 1] (from bound object <NSTableView: 0x341a80>): [<WordMO 0x5c1ea40> valueForUndefinedKey:]: this class is not key value coding-compliant for the key words.


Adding words to a new language:
2006-06-08 09:38:23.895 Words[20214] *** NSRunLoop ignoring exception '[<WordMO 0x3959f0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key words.' that raised during posting of delayed perform with target 5c57700 and selector 'invokeWithTarget:'


Deleting words:
2006-06-08 09:38:24.468 Words[20214] *** NSRunLoop ignoring exception '[<WordMO 0x5c1f6e0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key words.' that raised during posting of delayed perform with target 5c57700 and selector 'invokeWithTarget:'
2006-06-08 09:38:29.638 Words[20214] [<WordMO 0x3959f0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key words.


Adding and editing Example Sentences:
2006-06-08 09:39:18.951 Words[20214] Error setting value for key path selectionIndexes of object <NSArrayController: 0x380270>[entity: Word, number of selected objects: 1] (from bound object <NSTableView: 0x375160>): [<WordMO 0x30c4e0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key words.


Is there a different way to connect a model such as this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: QuickTime, Cocoa, et al
  • Next by Date: Re: QuickTime, Cocoa, et al
  • Previous by thread: Re: CoreData and Distinct
  • Next by thread: NSOutlineViewWill Expand/Collapse notifications
  • Index(es):
    • Date
    • Thread