This is a Xcode(v5.02) Cocoa project to show how to get the locale in OSX.