On lion after each crash when I start the app Lion asks if I want it to restore the application windows since it did not terminate properly last time, how can I disable this?
BACKGROUND: I am developing a Cocoa app for Lion (and Snow Leopard), it is a scientific app (not a consumer app, and is used only in house, no distribution outside).
It interfaces with a couple of hardware and it crashes a lot! (I know I should make it not crash but there are lots of legacy C code involved and not well written drivers and …).
QUESTION: On lion after each crash when I start the app Lion asks if I want it to restore the application windows, how can I disable this?
This seems to work but there isn’t anything documented about it, so it might not work in a future OS update:
Preventing Lion from State Save