Function

CFBundleCopyExecutableArchitecturesForURL

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

Declaration

CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url);

Parameters

url

The URL to examine.

Return Value

For a directory URL, if the bundle's executable exists and is a Mach-O file, returns an array of CFNumbers whose values are integers representing the architectures the URL provides. For a plain file URL representing an unbundled executable, returns the architectures it provides if it is a Mach-O file. Possible values are listed in Architecture Types. If there is no bundle executable or if the executable is not a Mach-O file, returns NULL. Ownership follows the The Create Rule.

Discussion

For a directory URL, this is equivalent to calling CFBundleCopyExecutableArchitectures on the corresponding bundle.

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.

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.

CFBundleGetVersionNumber

Returns a bundle’s version number.