Searches a directory and constructs an array of CFBundle objects from all valid bundles in the specified directory.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Foundation
The allocator to use to allocate memory for the new object. Pass
kto use the current default allocator.
The location of the directory to search for valid bundles.
The abstract type of the bundles to locate and create. The type is expressed as a filename extension, such as
NULLto create CFBundle objects for bundles of any type.
A CFArray object containing CFBundle objects created from the contents of the specified directory. Returns an empty array if no bundles exist at
NULL if there was a memory allocation problem. Ownership follows the The Create Rule.
The array returned by this function will not contain stale CFBundle references.
The The Create Rule applies both to the array returned and to the bundles in the array. In order to properly dispose of the returned value, you must release the array and any bundles returned in the array.