Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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. developer.apple.com/library/mac/documentation/General/Reference/… –  Onedayitwillmake Apr 7 '12 at 21:13
    
@Onedayitwillmake osxdaily.com/2011/08/01/… –  Daniel Beck Apr 7 '12 at 21:16

Your Answer

 
discard

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.