Re: NSManagedObjectModel
Re: NSManagedObjectModel
- Subject: Re: NSManagedObjectModel
- From: Logan Cautrell <email@hidden>
- Date: Thu, 29 Oct 2009 18:13:05 -0500
For the record, I found using NSKeyedArchiver and it's companion to work quite well in saving my generated MOM. I simply serialize the MOM into my app's documents directory after I have generated it. I then deserialize it as needed during subsequent application sessions.
-logan
On Oct 28, 2009, at 4:56 PM, Logan Cautrell wrote:
> I"m programmatically generating an NSManagedObjectModel (based on a web service). I am aware of the potential risks in doing this and have known issues and contingencies planned for.
>
> My question is how do I persist changes to the model? The MOC that I create from the model persists properly, but I am not clear on how I can persist changes to the model. There does not appear to be a built-in way of doing so.
>
> I am prepared to save the appropriate information and regenerate the MOM at runtime, but I was curious if there is a way for me to persist changes using the framework.
> -logan
_______________________________________________
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