Returns the location of a resource contained in the specified bundle directory without requiring the creation of a CFBundle object.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The bundle to examine.
The name of the requested resource.
The abstract type of the requested resource. The type is expressed as a filename extension, such as
NULLif you don’t need to search by type.
The name of the subdirectory of the bundle’s resources directory to search. Pass
NULLto search the standard CFBundle resource locations.
A CFURL object describing the location of the requested resource, or
NULL if the resource cannot be found. Ownership follows the The Create Rule.
This function provides a means to obtain package information for a bundle without first creating a bundle. However, since CFBundle objects cache search results, it is faster to create a CFBundle object if you need to repeatedly access resources.
Note that searches are case-sensitive, even on file systems (such as HFS+) that are not case sensitive with regards to file names.