Re: when to save user-data to disk?
Re: when to save user-data to disk?
- Subject: Re: when to save user-data to disk?
- From: Kyle Sluder <email@hidden>
- Date: Fri, 06 May 2011 20:51:59 -0700
Question one: iOS or Mac?
--Kyle Sluder
(Sent from the road)
On May 6, 2011, at 7:12 PM, Martin Batholdy <email@hidden> wrote:
> 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
_______________________________________________
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