Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On Lion, Xcode quit on its own when it was downloading documentation with no windows open. Is it safe to have Xcode download documentation in Mountain Lion or will it still quit on its own if all windows are closed?

share|improve this question
one thing to be clear about is that its not Xcode that is quitting itself. Its OS X that is quitting Xcode. – MrDaniel Sep 12 '12 at 21:38
Auto termination is dependent on how Xcode indicates its status to OS X, which is Xcode version depended if there were changes made, which version of Xcode is this about? An Xcode version that auto terminates on Lion should also auto terminate on Mountain Lion. – MrDaniel Sep 12 '12 at 21:42
up vote 1 down vote accepted

OS X 10.8.1 no longer automatically terminates Xcode 4.4.1 while Xcode is downloading documentation with no windows open. It looks like "they fixed the glitch" of Xcode not properly communicating its "working" status to OS X. Have not tried on Lion, but I would guess that Xcode 4.4.1 no longer is auto-terminated there too when downloading documentation.

share|improve this answer

According to OS X Daily, you can disable auto-terminate in Lion and Mountain Lion with the following terminal command:

defaults write -g NSDisableAutomaticTermination -bool yes

This sets the NSDisableAutomaticTermination flag in the defaults database that OS X consults to get various settings.

Note that this will disable automatic termination for all applications, not just Xcode.

share|improve this answer
Accepting MrDaniel's answer (because it was the answer) and upvoting this one because it tells me how to disable that stupid functionality. Ta! – Andrew J. Brehm Sep 13 '12 at 7:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.