• 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: Preferences caching?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferences caching?


  • Subject: Re: Preferences caching?
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 27 Nov 2013 13:43:51 -0800

On Nov 27, 2013, at 11:53 , Graham Cox <email@hidden> wrote:

> in many cases I’m afraid “trashing the prefs” is akin to voodoo as a solution for a problem, but it’s often put out there (not by us if we really don’t think it will help I hasten to add).
>
> Adding a button it is, I agree it’s better all round

FWIW I would say: right diagnosis, wrong solution.

What on earth is going on with your app(s) that requires preferences to be deleted? If, after all these years of your being a very accomplished developer, your apps aren’t robust enough to deal with unusable or inconsistent values in prefs — or, more to the point, put the prefs into such a state to begin with — then I humbly suggest you treat that as a major bug, and fix it.

It’s certainly true that there have been been scenarios in the past where some condition external to your app code could cause a corruption — e.g. a crash — but I think you can look at the new Mavericks caching as Apple’s side of a commitment to avoiding that. Now, a crash or sudden termination in your app can’t corrupt the prefs, since the user defaults daemon doesn’t crash too.

Is there a genuine reason why you can’t robustify your app’s dealings with preferences, and avoid the entire problem of deleting them?

_______________________________________________

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: Preferences caching?
      • From: Marco S Hyman <email@hidden>
    • Re: Preferences caching?
      • From: Graham Cox <email@hidden>
References: 
 >Preferences caching? (From: Graham Cox <email@hidden>)
 >Re: Preferences caching? (From: David Duncan <email@hidden>)
 >Re: Preferences caching? (From: Graham Cox <email@hidden>)
 >Re: Preferences caching? (From: Kyle Sluder <email@hidden>)
 >Re: Preferences caching? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Preferences caching?
  • Next by Date: Re: Preferences caching?
  • Previous by thread: Re: Preferences caching?
  • Next by thread: Re: Preferences caching?
  • Index(es):
    • Date
    • Thread