Type Alias

NSLocaleKey

The keys used to access components of a locale.

Declaration

typedef NSString *NSLocaleKey;

Discussion

Use these keys with the methods objectForKey: and displayNameForKey:value:.

Topics

Keys

NSLocaleIdentifier

The locale identifier.

NSLocaleCountryCode

The locale country code.

NSLocaleLanguageCode

The locale language code.

NSLocaleScriptCode

The locale script code.

NSLocaleVariantCode

The locale variant code.

NSLocaleExemplarCharacterSet

The exemplar character set for the locale.

NSLocaleCalendar

The calendar associated with the locale.

NSLocaleCollationIdentifier

The collation associated with the locale.

NSLocaleCollatorIdentifier

The collation identifier for the locale.

NSLocaleUsesMetricSystem

A flag that indicates whether the locale uses the metric system.

NSLocaleMeasurementSystem

The measurement system associated with the locale.

NSLocaleDecimalSeparator

The decimal separator associated with the locale.

NSLocaleGroupingSeparator

The numeric grouping separator associated with the locale.

NSLocaleCurrencySymbol

The currency symbol associated with the locale.

NSLocaleCurrencyCode

The currency code associated with the locale.

NSLocaleQuotationEndDelimiterKey

The end quotation symbol associated with the locale.

NSLocaleQuotationBeginDelimiterKey

The begin quotation symbol associated with the locale.

NSLocaleAlternateQuotationEndDelimiterKey

The alternate end quotation symbol associated with the locale.

NSLocaleAlternateQuotationBeginDelimiterKey

The alternating begin quotation symbol associated with the locale.

See Also

Accessing Locale Information by Key

- objectForKey:

Returns the value of the component corresponding to the specified key.

- displayNameForKey:value:

Returns the display name for the given locale component value.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software