Yep, agreed. There is already an open issue on his feature :)
IMO, this feature should be handled by node-webkit. Most of the apps on OS X don't quit when you close the last opened window. There are exceptions, but that only means the feature should be configurable.
I'd open a ticket for this.
On 24/Apr/2013 17:23, Tom Moor wrote:
Ok, it looks like you can use the window focus event to detect this.
The only thing i'm missing is being able to tell the difference between
clicking on the close button in the window and hitting CMD+Q, in apps
such as Spotify and Skype these two actions are handled differently.
On Wednesday, 24 April 2013 14:41:50 UTC+1, Tom Moor wrote:
It's all in the title - is an API available for this? I want to hide
our app when clicking close, and show it when clicking the dock -
similar to how many OSX apps work.
--
You received this message because you are subscribed to the Google
Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to node-webkit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Ionuț G. Stan | http://igstan.ro
--
You received this message because you are subscribed to a topic in the Google Groups "node-webkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-webkit/d6q0rScPc8I/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to node-webkit+unsubscribe@googlegroups.com.