Returns the display name for the given value.


func CFLocaleCopyDisplayNameForPropertyValue(_ displayLocale: CFLocale!, _ key: CFLocaleKey!, _ value: CFString!) -> CFString!



A locale object.


A string that identifies the type that value is. It must be one of the standard locale property keys (see Locale Property Keys).


The value for which the display name is required.

Return Value

The display name for value. Returns NULL if there was a problem creating the object. Ownership follows the The Create Rule.


Note that not all locale property keys have values with display name values.

See Also

Getting Information About a Locale

func CFLocaleGetValue(CFLocale!, CFLocaleKey!) -> CFTypeRef!

Returns the corresponding value for the given key of a locale’s key-value pair.

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