xcode - Get rid of "Do you want to try to reopen its windows again?" dialogs -
i'm building cocoa application xcode. have force-kill app unrelated reasons, , every time popup:
the last time opened myapp, unexpectedly quit while reopening windows. want try reopen windows again?
if choose not reopen windows, may have open , position windows yourself.
[don't reopen] [reopen]
what system called , how can disable application?
this cocoa's automatic state restoration in action. can suppress when app launched under xcode editing active scheme, choosing run action, , checking "launch application without state restoration".

note: disabling disable automatically-reopening documents opened previously, can pain testing document-based application, since you'll have re-open doc manually each time run it. only disables state restoration while being run under xcode under particular scheme.
Comments
Post a Comment