CFBundleCreateBundlesFromDirectoryHeader: CFBundle.h

Searches a directory and constructs an array of bundle instances from all valid bundles in the specified directory.

CFArrayRef CFBundleCreateBundlesFromDirectory (
    CFAllocatorRef allocator, 
    CFURLRef directoryURL, 
    CFStringRef bundleType
);
allocator

A reference value of the CFAllocatorRef indicating the memory allocator you with to use. Pass NULL to use the default allocator.

directoryURL

A reference value of type CFURLRef describing the directory you wish to search for valid bundles.

bundleType

A reference value of type CFStringRef containing the abstract type of the bundles you wish to locate and instantiate. Pass NULL to create instances for bundles of any type.

function result

A reference value of type CFArrayRef containing the bundle instances created from the contents of the specified directory. NULL is returned if there was a memory allocation problem or if the bundle doesn't exist at the specified location.


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