CFBundleCreateBundlesFromDirectory | Header: 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 );
A reference value of the CFAllocatorRef indicating the memory allocator you with to use. Pass NULL to use the default allocator.
A reference value of type CFURLRef describing the directory you wish to search for valid bundles.
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.
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.