• 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: NSUserDefaults not sticking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaults not sticking


  • Subject: Re: NSUserDefaults not sticking
  • From: Graham Cox <email@hidden>
  • Date: Thu, 11 Sep 2014 10:42:20 +1000

On 11 Sep 2014, at 10:32 am, Rick C. <email@hidden> wrote:

> And about not relying on the .plist if we don’t rely upon it how do we write our prefs?  I understand I should not manipulate it directly, but I am calling everything via NSUserDefaults…


Then you should be fine. The point is that the .plist does not necessarily represent the current state of the defaults for your app. Trashing it for example no longer resets the defaults like it used to, you have to go through the defaults system to reset them (as Kyle pointed out).

--Graham



_______________________________________________

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: NSUserDefaults not sticking
      • From: Scott Ribe <email@hidden>
References: 
 >NSUserDefaults not sticking (From: "Rick C." <email@hidden>)
 >Re: NSUserDefaults not sticking (From: Graham Cox <email@hidden>)
 >Re: NSUserDefaults not sticking (From: "Rick C." <email@hidden>)
 >Re: NSUserDefaults not sticking (From: Graham Cox <email@hidden>)
 >Re: NSUserDefaults not sticking (From: "Rick C." <email@hidden>)

  • Prev by Date: Re: NSUserDefaults not sticking
  • Next by Date: Re: NSUserDefaults not sticking
  • Previous by thread: Re: NSUserDefaults not sticking
  • Next by thread: Re: NSUserDefaults not sticking
  • Index(es):
    • Date
    • Thread