CFBundleCopyResourceURLsOfTypeInDirectoryHeader: CFBundle.h

Obtains an array of CFURLrefs describing the locations of all resources in a bundle of the specified type.

CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory (
    CFURLRef bundleURL, 
    CFStringRef resourceType, 
    CFStringRef subDirName
);
bundleURL

A reference value of type CFBundleRef indicating the bundle whose resources you wish to search.

resourceType

A reference value of type CFStringRef indicating the abstract type of the resources you wish to locate.

subDirName

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.

function result

A reference value of type CFArrayRef containing the CFURLRefs of the requested resources.

DISCUSSION

This function provides a means to obtain an array containing the locations of all of the requested resources without first creating an instance of their enclosing bundles.


© 1999 Apple Computer, Inc. — (Last Updated 9/17/99)