Core data autosave
Core data autosave
- Subject: Core data autosave
- From: Kenneth Baxter <email@hidden>
- Date: Sat, 22 Jan 2011 01:01:36 +0000 (GMT)
I need to autosave my documents in my core data document based application
I must say I was surprised and disappointed when I found out that Core Data doesn't appear to have any autosave support built in and NSPersistentDocument doesn't support the superclass NSDocument autosave architecture.
I see there has been some discussion previously about possible approaches to solving this issue. I need something that works on 10.5 and 106.
In 2008, Ben Trumbull said "You could fake it by migrating the store to the backup location, creating a second context, pulling all the deltas from the original, save, and then tossing the second context."
Is this the current opinion on the best way to do autosave? It sounds like a very heavy approach, and I'm not sure on the actual implementation details of how to do what Ben says. If there is some common way of doing this, is there some sample code out there from Apple or someone else?
Any feedback/suggestions would be very much appreciated.
Thanks
Ken_______________________________________________
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