when to save user-data to disk?
when to save user-data to disk?
- Subject: when to save user-data to disk?
- From: Martin Batholdy <email@hidden>
- Date: Sat, 07 May 2011 04:12:46 +0200
Hi,
I have a program that saves its data (an array of dictionaries) as a plist in the application support folder
with the writeToFile method from NSFileManager.
Now this array gets manipulated a lot while working with the program.
And currently I save the array to disk every time something in the array get changed.
Now is that bad practice?
Can I also just write the array only once to the disk, that is when the app gets terminated?
But then, what happens when the program crashes or get forced to quit?
thanks for any advice!_______________________________________________
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