Updating UI When Copying Value Tree


#1

If I open an xml file and convert it to a value tree, what is the easiest way to update the UI which read the values of the properties in the tree as when I copy the file’s ValueTree to the currently open ValueTree, ‘valueTreePropertyChanged’ doesn’t appear to be called


#2

I guess it will raise a ValueTreeRedirected, as you usually swap the whole tree for the new loaded one.
But I created a simple helper listener, that just logs all ValueTree::Listener events, maybe that helps:

Here is some API doc: https://ffaudio.github.io/ffGuiAttachments/classValueTreeDebugListener.html

You can also just add the whole module to your project using Projucer, that way you don’t need any includes etc.