I need to store some single value, like logged in user's id from server or for example flag that application was launched for the first time. This info has to be stored persistently and there should be thread safety of course. What is the best method to do that? As I understand, there are at least two persistent storage technologies - NSUserDefaults and Core Data. First one is not supposed to do what I need, i.e. it's supposed to store user preferences, not technical data, and second one is supposed to store relational entities in quantities larger than 1, AFAIK.
Is there any other technologies to persistently store application data with thread safety? Am I supposed to learn about Core Data further more?