views:

53

answers:

1

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?

+1  A: 

Use

bool usesMetic = [[NSLocale currentLocale] objectForKey:NSLocaleUsesMetricSystem];
Lawrence Johnston