Re: NSMutableDictionary
Re: NSMutableDictionary
- Subject: Re: NSMutableDictionary
- From: Paul Hoadley <email@hidden>
- Date: Sun, 07 Feb 2016 09:55:39 +1030
Hi Bart,
On 7 Feb 2016, at 9:06 am, jazzsalsa <email@hidden> wrote:
> This really helps. I will give that I try. How do I add it now to the database uisng the EOF?
Hugi’s advice is about round-tripping to and from JSON as a serialisation format, because you mentioned "a nested JSON object which is converted to a dictionary” in your original post. So it’s an alternative to the “converted to a dictionary” part. If you also need to persist this data using EOF, you’d make the objects in the object graph (assembled from the JSON) Enterprise Objects, and then save them out in the usual way.
> Add them to a NSDictionary with a loop and store in the editing context?
The idea here would be to drop the use of dictionaries if you can. But I think we’re approaching the limit of what we can suggest without knowing some more detail (at a higher level) about what you’re trying to do.
--
Paul Hoadley
http://logicsquad.net/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden