I have a mac os x app with a window which can be hidden.
When the user clicks on the app icon in the dock (or open -b com.mycompany.myapp in the terminal), I would like this window to be shown again (it's a Qt app, so the setVisible(true) thing is known).
How do I catch the app activation event?
Thanks for any help.