I am not able to get NSUserDefaults concepts properly. Is that a database of plist file ?
Asked
Active
Viewed 342 times
2 Answers
2
It's a key-value store that is persisted between restarts of your application. How it's implemented has little bearing on how you use it.

Stephen Darlington
- 51,577
- 12
- 107
- 152
-
What is the default way of storage ? db or file ? – thndrkiss Jul 05 '10 at 09:14
-
thndrkiss, it doesn't matter, all you need to know is that it persists your data between app runs. Read what Stephen Darlington wrote! – Jasarien Jul 05 '10 at 09:42
-
1Why does it matter? It's not documented so you shouldn't make any assumptions about how it is implemented. – Stephen Darlington Jul 05 '10 at 09:50
0
I don't know if it's different on the iPhone OS (which i don't believe) but in Mac OS X is it a plist file in your Library/Preferences folder. Pretty sure it's the same on iPhone OS/iOS

HerrVoennchen
- 351
- 1
- 5