Storing an NSDictionary in NSManagedObject
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