views:

53

answers:

2

Hi,

I am not able to get NSUserDefaults concepts properly. Is that a database of plist file ?

A: 

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

ReaperXmac
+1  A: 

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
What is the default way of storage ? db or file ?
thndrkiss
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
Why does it matter? It's not documented so you shouldn't make any assumptions about how it is implemented.
Stephen Darlington