I have an app that checks for a file upon load from the appDelegate\'s appDidFinishLoading method using a url value that I supposedly store in the NSUserDefaults Settings Root P
Turns out I was missing this line:
nsUserDefURL = [[NSUserDefaults standardUserDefaults] stringForKey:kFirstNameKey];
But this only reads the default value each launch. It won't save the user modified value in the app settings. Why is that value not being saved?
You'll need to explicitly save it. For example, if strFirstName is the value that the user modified, then you would save it to the app settings by
NSUserDefaults* ud = [NSUserDefaults standardUserDefaults];
[ud setObject:strFirstName forKey:kFirstNameKey];
[ud sychronize];