I have developed a plugin on Mac which has ADM dialogs. I created a ADM dialog using "create" method and then displayed the dialog as modal by using function "DisplayAsModal". When I close this dialog using "EndModal" function, the Illustrator's view hangs ie. I am not able to click on any of the tools in tool bar or select any layer from Layers panel.
I observed that if i create a new document or reopen Layers panel, then the Illustrator's view is refreshed.
Is there any method to refresh the Illustrator's view using Illustrator SDK. Also, before using "EndModal" function, I called "Show" function to hide the ADM dialog first and then called "EndModal" function to close it, as using only "EndModal" function, the dialog becomes diasble but is still shown to user.
Can someone please guide me how can I overcome this problem??
Thanks in advance