CFBundleCopyResourceURLInDirectory | Header: CFBundle.h |
Obtains the location of a resource contained in the specified bundle directory without requiring the creation of a bundle instance.
CFURLRef CFBundleCopyResourceURLInDirectory ( CFURLRef bundleURL, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName );
A reference value of type CFBundleRef indicating the bundle whose resources you wish to search.
A reference value of type CFStringRef containing the name of the requested resource.
A reference value of type CFStringRef indicating the abstract type of the requested resource. Pass NULL if you don't need to search by type.
A reference value of type CFStringRef indicating a specific subdirectory of the bundle's Resources directory you wish to search. Pass NULL to search the standard CFBundle resource locations.
A value of type CFURLRef describing the location of the requested resource, or NULL if the resource cannot be found.