oakmac / cuttle

User Interface for the ClojureScript Compiler
MIT License
315 stars 11 forks source link

Unexpected behavior of OS X client's close button #97

Open pgambling opened 9 years ago

pgambling commented 9 years ago

The close button currently shuts down the application. However, the normal behavior of OS X's close button is to close the window while the application remains active in the dock. Closing the application is accomplished by cmd+q or app menu->quit.

shaunlebron commented 9 years ago

There are some applications that explicitly close after its last window is closed (e.g. Popcorn Time, System Preferences). Regardless of that, if the window is closed, there's not much else the user can do since our menu only has default items inherited from Atom Shell.

pgambling commented 9 years ago

Wouldn't you still see the dock bounce and notifications even when the window is closed?

On Tue, Feb 17, 2015, 9:51 AM Shaun LeBron notifications@github.com wrote:

Closed #97 https://github.com/oakmac/cuttle/issues/97.

— Reply to this email directly or view it on GitHub https://github.com/oakmac/cuttle/issues/97#event-237012451.

shaunlebron commented 9 years ago

Not currently. @oakmac, should we re-open the window if the dock icon is clicked?

pgambling commented 9 years ago

I mean IF Cuttle only closed the window and not the application when clicking close, I'd still expect the dock icon the bounce and growl notifications to appear.

oakmac commented 9 years ago

I don't know enough about Mac common defaults to have an informed opinion here.

As a general heuristic, I think we should support the Principle of least astonishment ;)

CASandmann commented 9 years ago

In my admittedly limited interactions with OSX, most applications seem to work the way Phil described: