What is the difference between [NSLocale preferredLanguages] and [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"]?
- I am confused with Apple Documentation description and can’t understand clearly, Who can tell me their difference? because I get the same data from them.
- which one should we use at differente cases?
You should use
[NSLocale preferredLanguages], use[[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"]if you are supporting Mac OS X 10.4 or earlier.