1

Greetings StackOverflow community,

I put a breakpoint on the first line in main(argc, argv) function to see what [NSUserDefaults standardUserDefaults] holds and I was surprised to see that it already had many parameters and values from the application's previous execution.

At what stage are user defaults loaded into memory? Where are they saved once the application terminates?

Thank you!

Sleiman

Sleiman
  • 1,620
  • 1
  • 12
  • 16
  • 1
    http://stackoverflow.com/questions/7982740/where-is-a-mac-applications-nsuserdefaults-data-stored – turbo Feb 27 '15 at 20:09
  • Thanks turbo! Does this mean that these user defaults are global to the device and not necessarily specific to the application? – Sleiman Feb 27 '15 at 20:19
  • because of sandboxing you can't access another apps data. – turbo Feb 27 '15 at 20:30

0 Answers0