#Open a window when app icon clicked

2 messages · Page 1 of 1 (latest)

terse umbra
#

Hello everyone, after closing the last window of my app, i'd like a new one to be opened when the user clicks on its icon ("activates" it) in the Dock. I can't find any documentation on this kind of event. How would I go about doing this?

#

In other words:

  1. Close all windows of the app, app is kept running in background
  2. Click on the app's icon
  3. A new window should open (but doesn't)