Saving some managed objects separately
Saving some managed objects separately
- Subject: Saving some managed objects separately
- From: Arthur C. <email@hidden>
- Date: Tue, 9 Sep 2008 17:48:28 +0200
- Importance: Normal
In my application I have a status log which is kept in Core Data. This gives a nice interface and persistence for the log.
However, I would like to be able to save the log to disk independent from other parts of my Core Data model. This is needed to prevent the log from getting lost in the event of a power failure or program crash. The uptime is supposed to be several months, at least, so things should be saved at some point.
It is possible to assign the log objects to a second persistent store, but that gives no second 'save action' to save it independently. The only save action I found is in the managedObjectContext but that saves everything, destroying the undo stack. So should I have two managed object contexts? And then, also with another persistent store coordinator? Or is there a simpler way?
Thanks for your time,
Arthur
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/_______________________________________________
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