Contents

CFBundleLoadExecutableAndReturnError(_:_:)

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

Declaration

func CFBundleLoadExecutableAndReturnError(_ bundle: CFBundle!, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Parameters

  • bundle:

    The bundle to examine.

  • error:

    Upon return, if an error occurs contains a CFError that describes the problem. Ownership follows the 20001148 103029.

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