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.
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.
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