How can we detect that an app is opened and get a handle to its app object?
Before, with figure
, it was practical to use some findobj
on the figure 'Tag'
. Then, we could check if it exists or not, and retrieve the content of the figure. But I didn't find how to manage it with an app.
Typically: I have a main app, that opens a new app window when I click on a button. Then, if I click on the button again, I want to check if the second app window is already opened or not, and if yes, take its app object, or delete the second window, etc. How can I capture this? Is there a way to capture it with findobj
or similar function?
If I can avoid doing it by saving the app object with the get/setappdata
, it would be nice.