Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Disable automatic application termination in OS X ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Disable automatic application termination in OS X
Authored by: auco on Aug 02, '12 10:19:52AM
This hint mixes two things with little knowledge and some false information.

1. There is termination after the last window has been closed.
There is a setting in NSApplication which every application can opt in:
 -(BOOL)applicationShouldTerminateAfterLastWindowClosed:
If the developer sets this to true, it'll quit after the last window has been closed. The default state on Lion is to not quit. Maybe this has changed with Mountain Lion, but I don't think so. You cannot alter this behavior as user.

2. Automatic Termination:
Since Lion there is automatic termination and it has absolutely nothing to do with closed windows or not (or very little). On Lion this has been totally in the background and on Mountain Lion it's simply taken to the UI. This is a concept originating from iOS and it terminates applications automatically based on a well defined rule set, e.g. inactive time, idle state, frequent activation, amongst others... So, to the end user it doesn't really matter if the app is running or not, that's why the active item indicator in the dock shrunk (and it'll probably disappear completely with 10.9.)
It's like on iOS. There is the last used app icon, but as a user, you can't say if it's still active or inactive but just recently used.

Edited on Aug 02, '12 10:22:52AM by auco


[ Reply to This | # ]
Disable automatic application termination in OS X
Authored by: vykor on Aug 02, '12 12:15:02PM

Well, perhaps not quite. There is a system policy to "terminate" apps with no windows open, automatically -- this has been set since Lion, and has nothing to do with the app-specific setting. You can see John Siracusa's review on it from Ars.

http://arstechnica.com/apple/2012/07/os-x-10-8/18/#automatic-termination

You can test this experimentally by opening Preview, opening a PDF, closing the window, and then switching to another app. Preview disappears from the Dock and the Cmd-Tab list.

Now, the process does not actually leave the Activity Monitor or top, so one wonders how "terminated" it really is.



[ Reply to This | # ]
Disable automatic application termination in OS X
Authored by: chabig on Aug 02, '12 02:32:56PM

"You can test this experimentally by opening Preview, opening a PDF, closing the window, and then switching to another app. Preview disappears from the Dock and the Cmd-Tab list."

On my machine, Preview stays in the Dock and the Cmd-Tab list. I think the System is smarter than you think and is basing the decision to terminate or keep open based on demand for resources.



[ Reply to This | # ]
Disable automatic application termination in OS X
Authored by: DavidRavenMoon on Aug 03, '12 08:08:21AM

So I just tried opening Preview, and then opening a PDF. As soon as I closed the PDF window Preview did quit, and it is still in the Activity Monitor.

Very odd.

---
iMac 2.93 GHz Core 2 Duo, 8GB, 1TB, Mac OS X 10.8
www.david-schwab.com
www.myspace/davidschwab
www.sgd-lutherie.com



[ Reply to This | # ]
Disable automatic application termination in OS X
Authored by: jaydisc on Aug 02, '12 05:02:45PM

I think you still have to opt-in for this behavior. Obviously, Apple has opted-in Preview and TextEdit.



[ Reply to This | # ]