Should closing the window terminate the program?

Discussion in 'Mac Programming' started by ppc_michael, Jun 24, 2008.

  1. Guest

    ppc_michael

    Joined:
    Apr 26, 2005
    Location:
    Los Angeles, CA
    #1
    Just using examples, if you close the iTunes window, iTunes.app remains running until you explicitly quit. Yet if you open iPhoto and close the iPhoto window, iPhoto.app terminates as well.

    Is there some sort of guideline for this sort of thing? Which should my applications do?
     
  2. Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #2
    system preferences also terminates with closing the window... but both sys prefs and iphoto don't have an option to "open new prefs window" or "start new iPhoto window", so it makes sense that they terminate on window close... although maybe it would have been smarter for apple to just remove the close option from the window controls... AND itunes is like iphoto and sys prefs, so i think apple was being sloppy... did i just contradict myself?

    it is probably written in the HIG that you should not terminate the app when closing the main window, but if that's the case, than clearly apple isn't following their own guidelines...

    i would suggest that if your app isn't a document based app, or an app without the ability to open multiple windows to remove the close window option from the window controls simply because mac users are use to having to quit apps and not close apps...
     
  3. macrumors 6502a

    hobbbz

    Joined:
    Mar 8, 2005
    #3
    i would just make sure that +Q quits, as a mac user when i'm done with a program that's how i always get rid of it.
     
  4. macrumors 68030

    Catfish_Man

    Joined:
    Sep 13, 2001
    Location:
    Portland, OR

Share This Page