I have a plugin that uses a TableListBox. For reading data into the table it searches for an xml file named “Table_Data.xml”. If it’s not found it creates one. It’s fairly similar to the TableListBox tutorial. JUCE: Tutorial: The TableListBox class
But this method does not allow to have different data in a plugin when multiple instances are used (because they all use the same xml file). Also, reading and writing a file on other OS gives some headaches as well (the plugin crashes on Linux if not run as root).
So i was thinking to save the table data to the memoryBlock in my AudioProcessor::getStateInformation and restore it in my AudioProcessor::setStateInformation. My question is, would this be a good solution / are there better solutions? How can i save and restore multiple xml files to the MemoryBlock?