Function

CFBundleGetAllBundles

Returns an array containing all of the bundles currently open in the application.

Declaration

CFArrayRef CFBundleGetAllBundles(void);

Return Value

A CFArray object containing CFBundle objects for each open bundle in the application. Ownership follows the The Get Rule.

Discussion

This function is potentially expensive and not thread-safe. It’s best used for debugging or other diagnostics purposes rather than as part of the main execution path of production code.

See Also

Creating and Accessing Bundles

CFBundleCreate

Creates a CFBundle object.

CFBundleCreateBundlesFromDirectory

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

CFBundleGetBundleWithIdentifier

Locate a bundle given its program-defined identifier.

CFBundleGetMainBundle

Returns an application’s main bundle.