Dialog Save State - Persistence
Hi
I have a c++ filter plugin which is invoking an HTML5 extension which has a modal dialog window with controls. I want to save the state of controls on the modal dialog. So to do so I have tried to make my extension persistent by adding this code on onloaded()
var event = new CSEvent("com.adobe.PhotoshopPersistent", "APPLICATION");
event.extensionId = csInterface.getExtensionID();
csInterface.dispatchEvent(event);
But it didn't worked as expected. For testing purpose I am running extension directly even then it didn't persisted the values. So I tried to dispatch this event on checkbox click from modal dialog itself, but that also didn't helped.
Please help,its urgent.