CS6 TreeViewWidget refresh
Hi,
I have a problem with the TreeViewWidget in CS6, but not in CC.
My plugin displays a queue (using a TreeViewWidget) in much the same way as the LinksUI plugin,
I actually studied the LinksUI plugin and based my own queue on it.
But my plugin works fine in ID CC, but in CS6 the queue does not refresh when items are added to it.
I refresh the queue, after I have added items to it, in the same way as I do for ID CC:
IControlView view;
view->HideView();
view->ShowView();
I know that this is somewhat of a hack, but hey it works, at least in CC.
But none of this stuff seems to work in CS6, I need to switch panels in order to refresh the panel that
contains the queue.
What can I do to refresh the queue (TreeViewWidget) in CS6 without having to switch panels first?
This is what I have tried so far:
// On steroids:
treeView->Disable();
treeView->Enable();
//
treeView->Invalidate();
treeView->Validate();
treeView->ForceRedraw(nil, kTrue);
treeView->Hide();
treeView->Show(kTrue);
treeView->ForceRedraw(nil, kTrue);
//
treeView->Disable();
treeView->Enable();
//
treeView->Invalidate();
treeView->Validate();
treeView->ForceRedraw(nil, kTrue);
treeView->Hide();
treeView->Show(kTrue);
treeView->ForceRedraw(nil, kTrue);
//
treeView->Disable();
treeView->Enable();
NOTE: I use the CS6 SDK for the CS6 plugin and the CC SDK for the CC plugin, configured as targets in the same Xcode project.
