Hi guys & JUCE team,
I am using a TreeView object, to display a large ValueTree with lots of items.
As you know, inside each TreeView, there are lots of TreeViewItems.
I have a question about the containing TreeViewItems.
What is the lifetime of the TreeViewItems? I mean, when do they get deleted?
First I thought, they would get deleted, when they are no longer visible (when they are scrolled out of view). But that is not the case.
I am asking, because I want to make sure, that the TreeView does not accidentally delete one of my TreeViewItems, while I am still running code inside of it. (Cause that could cause a crash).