Contents

CFTreeSetContext(_:_:)

Replaces the context of a tree by releasing the old information pointer and retaining the new one.

Declaration

func CFTreeSetContext(_ tree: CFTree!, _ context: UnsafePointer<CFTreeContext>!)

Parameters

  • tree:

    The tree to modify.

  • context:

    The Cftreecontext structure to be copied and used as the context of the new tree. The information pointer will be retained by the tree if a retain function is provided. If this value is not a valid C pointer to a Cftreecontext structure-sized block of storage, the result is undefined. If the version number of the storage is not a valid Cftreecontext version number, the result is undefined.

See Also

Modifying a Tree