Function

CFBundleGetPackageInfoInDirectory

Returns a bundle’s package type and creator without having to create a CFBundle object.

Declaration

Boolean CFBundleGetPackageInfoInDirectory(CFURLRef url, UInt32 *packageType, UInt32 *packageCreator);

Parameters

url

The location of a bundle.

packageType

On return, the four-letter type code for the bundle. This is APPL for applications, FMWK for frameworks, and BNDL for generic bundles. Or a more specific type code for generic bundles.

packageCreator

On return, the four-letter “creator” code for the bundle.

Return Value

true if the package type and creator were found, otherwise false.

See Also

Getting Bundle Properties

CFBundleCopyBundleURL

Returns the location of a bundle.

CFBundleGetDevelopmentRegion

Returns the bundle’s development region from the bundle’s information property list.

CFBundleGetIdentifier

Returns the bundle identifier from a bundle’s information property list.

CFBundleGetInfoDictionary

Returns a bundle’s information dictionary.

CFBundleGetLocalInfoDictionary

Returns a bundle’s localized information dictionary.

CFBundleGetValueForInfoDictionaryKey

Returns a value (localized if possible) from a bundle’s information dictionary.

CFBundleCopyInfoDictionaryInDirectory

Returns a bundle’s information dictionary.

CFBundleCopyInfoDictionaryForURL

Returns the information dictionary for a given URL location.

CFBundleGetPackageInfo

Returns a bundle’s package type and creator.

CFBundleCopyExecutableArchitectures

Returns an array of CFNumbers representing the architectures a given bundle provides.

CFBundleCopyExecutableArchitecturesForURL

Returns an array of CFNumbers representing the architectures a given URL provides.

CFBundleGetVersionNumber

Returns a bundle’s version number.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software