Function

CFBundleLoadExecutableAndReturnError

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

Declaration

Boolean CFBundleLoadExecutableAndReturnError(CFBundleRef bundle, CFErrorRef *error);

Parameters

bundle

The bundle to examine.

error

Upon return, if an error occurs contains a CFError that describes the problem. Ownership follows the The Create Rule.

Return Value

If bundle is already loaded, returns true. If bundle is not already loaded, attempts to load bundle; if that attempt succeeds returns true, otherwise returns false.

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.

CFBundleLoadExecutable

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

CFBundleUnloadExecutable

Unloads the main executable for the specified bundle.