Returns an array containing copies of the URL locations for a specified bundle, resource, and localization name.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The bundle to examine.
The abstract type of the resources to locate. The type is expressed as a filename extension, such as
The name of the subdirectory of the bundle’s Resources directory to search. Pass
NULLto search the standard CFBundle resource locations.
The name of the localization. This value should correspond to the name of one of the bundle's language-specific resource directories without the
.lprojextension. (This parameter is treated literally: If you pass
"de", the function will not match resources in a
Germandirectory in the bundle.)
A CFArray object containing copies of the requested locations. Ownership follows the The Create Rule.
Note that file names are case-sensitive, even on file systems (such as HFS+) that are not case sensitive with regards to file names.
You should typically have little reason to use this function (see Getting the Current Language and Locale)—CFBundle’s interfaces automatically apply the user’s preferences to determine which localized resource files to return in response to a programmatic request. See also
CFBundle for how to determine what localizations are available