CFBundleCopyResourceURLHeader: CFBundle.h

Obtains the location of a resource contained in the specified bundle.

CFURLRef CFBundleCopyResourceURL (
    CFBundleRef bundle, 
    CFStringRef resourceName, 
    CFStringRef resourceType, 
    CFStringRef subDirName
);
bundle

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

resourceName

A reference value of type CFStringRef containing the name of the requested resource.

resourceType

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.

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 value of type CFURLRef describing the location of the requested resource, or NULL if the resource cannot be found.


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