How do I make the interface for an application that has 'Application is agent (UIElement)' set to yes reappear?
The interface shows up the first time I start the app, but if I close the window, and the click on the app's icon then nothing happens. I guess that it's because OS X is trying to start the app again, and there is some mechanism preventing that. What I would like is this:
- The first click on the app's icon should launch the app and show the interface.
- If the interface has been closed down (but the app is still running in the background) a subsequent click on the icon should just show the interface.
- If the interface is already shown a click on the icon should simply move the window to the foreground.