Adds a new child to a tree as the last in its list of children.


func CFTreeAppendChild(_ tree: CFTree!, _ newChild: CFTree!)



The tree to which to add newChild.


The child tree to add to tree. If this parameter is a tree which is already a child of any other tree, the behavior is undefined.


When a child tree is added to another tree, the child tree is retained by its new parent.

See Also

Modifying a Tree

func CFTreeInsertSibling(CFTree!, CFTree!)

Inserts a new sibling after a given tree.

func CFTreeRemoveAllChildren(CFTree!)

Removes all the children of a tree.

func CFTreePrependChild(CFTree!, CFTree!)

Adds a new child to the specified tree as the first in its list of children.

func CFTreeRemove(CFTree!)

Removes a tree from its parent.

func CFTreeSetContext(CFTree!, UnsafePointer<CFTreeContext>!)

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