• 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: Tue, 09 Sep 2014 16:08:31 +1000

On 9 Sep 2014, at 3:36 pm, Rick C. <email@hidden> wrote:

> I write some data to my .plist using standard NSUserDefaults


Are you writing the .plist file, or are you using the NSUserDefaults object exclusively? From 10.9 the .plist isn't updated by NSUserDefaults, so values there can be very much out of date, because the defaults system caches its contents.

You can't rely on the plist being an accurate representation of what the user defaults actually contains.

--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: "Rick C." <email@hidden>
References: 
 >NSUserDefaults not sticking (From: "Rick C." <email@hidden>)

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