How do I get the “Measurement Units” setting from OS X?
-
06-09-2019 - |
Question
I want my app to display measurements in US or Metric based on the chosen setting in OS X's International preference pane.
How do I get this piece of information from the OS in my code?
Solution
Use
BOOL usesMetic = [[[NSLocale currentLocale] objectForKey:NSLocaleUsesMetricSystem] boolValue];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow