• 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
Storing an NSDictionary in NSManagedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Storing an NSDictionary in NSManagedObject


  • Subject: Storing an NSDictionary in NSManagedObject
  • From: August Trometer <email@hidden>
  • Date: Thu, 6 Apr 2006 17:10:32 -0400

I have data model where I need to store a dictionary of information. The closest data type that is available to me is "Binary" which means I need to archive/unarchive to get at the dictionary. This is fine, and I have no problems accessing the information. However, doing the archive/unarchive in the accessors disables the ability to bind directly to a key path for an exact dictionary key/value pair. The binding doesn't fail and I can read the information. But if I try to change the information, the changes don't get saved.

Is there a good way to do this? A preferred way? Obviously, I could change the model and break apart the dictionary to store the individual values, but in this case, it's not practical (nor preferable) for me to do so.

Thanks!

August




_______________________________________________ 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
  • Follow-Ups:
    • Re: Storing an NSDictionary in NSManagedObject
      • From: Jim Correia <email@hidden>
  • Prev by Date: Re: Strange checkbox <-> edit field IB bug?
  • Next by Date: iWeb style components
  • Previous by thread: Re: Leaks in NSImage's drawInRect:fromRect:operation:fraction:
  • Next by thread: Re: Storing an NSDictionary in NSManagedObject
  • Index(es):
    • Date
    • Thread