• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: when to save user-data to disk?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: when to save user-data to disk?
      • From: Martin Batholdy <email@hidden>
References: 
 >when to save user-data to disk? (From: Martin Batholdy <email@hidden>)

  • Prev by Date: Re: block animation
  • Next by Date: Re: NSTextView and NSTextContainer size & clipping area
  • Previous by thread: when to save user-data to disk?
  • Next by thread: Re: when to save user-data to disk?
  • Index(es):
    • Date
    • Thread