Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

While working on my application it crashes a lot while in development. However I always receive the annoying dialog box on the next Compilation » Build » Launch

The application unexpectedly quit while trying to restore its windows. Do you want to try to restore it's windows again?

I never want that ever. How can I make it never ask me this question?

This application is an art project in C++, so I do not have access to some of the normal Objective-C / foundation frameworks within it if that matters.

share|improve this question
Have you tried quitting instead of killing it in the debugger/IDE? – Daniel Beck Apr 7 '12 at 20:39
I have, I command+q to quit the app by finger habit. – Onedayitwillmake Apr 7 '12 at 21:07

In System Preferences > General, find the checkbox "Restore windows when quitting and re-opening apps" and uncheck it. You may also be able to change this for the specific app (I expect it would be in its Info.plist).

share|improve this answer
I just checked, and I noticed I happened to already have that box checked. I can modify the Info.plist for the specific flag, that's a good idea, I will look back for a property I can set – Onedayitwillmake Apr 7 '12 at 21:06
Did you mean already unchecked? If it's checked, then programs built for Lion will restore their settings. – geekosaur Apr 7 '12 at 21:09
I did mean that, my mistake. That box is not checked. – Onedayitwillmake Apr 7 '12 at 21:13
I was not able to locate any Info.plist keys related to window-restore.… – Onedayitwillmake Apr 7 '12 at 21:13
@Onedayitwillmake… – Daniel Beck Apr 7 '12 at 21:16

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.