Function

CFBundleLoadExecutable

Loads a bundle’s main executable code into memory and dynamically links it into the running application.

Declaration

Boolean CFBundleLoadExecutable(CFBundleRef bundle);

Parameters

bundle

The bundle whose main executable you want to load.

Return Value

true if the executable was successfully loaded, otherwise false.

Discussion

You should typically try to avoid using this function, but instead use CFBundleGetFunctionPointerForName and related functions since these make memory management of the bundle easier.

See Also

Loading and Unloading a Bundle

CFBundleIsExecutableLoaded

Obtains information about the load status for a bundle’s main executable.

CFBundlePreflightExecutable

Returns a Boolean value that indicates whether a given bundle is loaded or appears to be loadable.

CFBundleLoadExecutableAndReturnError

Returns a Boolean value that indicates whether a given bundle is loaded, attempting to load it if necessary.

CFBundleUnloadExecutable

Unloads the main executable for the specified bundle.