CFBundleGetBundleWithIdentifierHeader: CFBundle.h

Locate a bundle instance given its user specified identifier.

CFBundleRef CFBundleGetBundleWithIdentifier (
    CFStringRef bundleID
);
bundleID

A reference value of type CFStringRef containing the identifier of the bundle instance you wish to locate.

function result

A reference value of type CFBundleRef if the instance is found, NULL if not.

DISCUSSION

In order for a bundle to be located using its identifier, the bundle instance must have already been created.

Bundle identifiers are created by entering a value for the key CFBundleIdentifier in your CustomInfo.plist file.

In order to guarantee uniqueness, bundle identifiers take the form of Java style package names, e.g. "com.apple.foo.bar". Refer to CFBundle's conceptual documentation for details on using bundle identifiers.


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