Re: NSUserDefaults not sticking
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