This link comes on top when searching for AppleMetricUnits
https://opensource.apple.com/source/CF/CF-855.17/CFLocale.c.auto.html
CFTypeRef pref = CFDictionaryGetValue(locale-_prefs, CFSTR("AppleMetricUnits"));
if (pref) {
us = (kCFBooleanFalse == pref);
done = true;
} else {
pref = CFDictionaryGetValue(locale-_prefs, CFSTR("AppleMeasurementUnits"));
if (pref) {
us = CFEqual(pref, CFSTR("Inches"));
done = true;
}
}
and it seems the code is expecting boolean value for AppleMetricUnits key.
How is false/ which seems XML becomes a boolean? What is the correct way to pass booleans as launch arguments?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: