NSUserDefaults is persistent right? If we close application it’s still there. So it’s IO.
Does that mean everytime we do
– setObject:forKey: we do IO?
Does iPhone will read and write to disk everytime we do
[[NSUserDefaults standardUserDefaults] setObject:trimmedSearchLocation forKey:SEARCHNEAR];
or that sort of thing
From the docs:
so only if
synchronizeinvokes you have IO on your disk!