Function

CFBundleGetInfoDictionary

Returns a bundle’s information dictionary.

Declaration

CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle);

Parameters

bundle

The bundle to examine.

Return Value

A CFDictionary object containing the data stored in the bundle’s information property list (the Info.plist file). This is a global information dictionary. CFBundle may add extra keys to this dictionary for its own use. Ownership follows the The Get Rule.

Discussion

You should typically use CFBundleGetValueForInfoDictionaryKey rather than retrieving values directly from the info dictionary because the function will return localized values if any are available. Use CFBundleGetInfoDictionary only if you know that the key you are interested in will not be localized.

To retrieve an info dictionary without creating a CFBundle object, see CFBundleCopyInfoDictionaryInDirectory and CFBundleCopyInfoDictionaryForURL.

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.

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.

CFBundleGetPackageInfoInDirectory

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

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.