im using the same function as the LLTreeView example (InitWorkspace, addLLNodes) to populate my listTreeView with LLTreeNodes.
What's the easiest way to make it populate the entire livelink database below a given node, into the listTreeView? I'm asking because when i attempt to use a recursive function to iterate through the nodes in the treeview (I'm really interested in applying new permissions to the LLTreeNodes that the Nodes in the treeview represent) I can only apply the changes to the first layer of children below the visible folders in the treeview. Would calling the addLLNodes recursively be the easiest way? If i could get a little help on that it'd be greatly appreciated. I'm jsut not sure what to do once the first AddLLNodes completes. Should i be using something like this pseudo code once addLLNodes returns:
foreach(TreeNode n in (the newly generated Nodes from addLLNodes))
{
cast LLNode to TreeNode
check that the TreeNode has Children
foreach(TreeNode tn in n.Node.Nodes)
addLLNodes(tn)
}
or is there a better way?
Thanks in advance