Yes. Since it is documented in the Lion AppKit release notes , you can set the user to default ApplePersistenceIgnoreState
. (The documents imply that the value does not matter, you just need to install something).
An easy way to do this is for debugging runs only, while maintaining the state recovery function during normal use of the application, is to install it in Xcode. In your Run Action program, specify a command-line argument for -ApplePersistenceIgnoreState
, and immediately after it, another with a value (for example, YES
). This uses the AppKit function to read custom defaults from the command line.
source share