Re: Preventing app from being restored or saving info in "Saved Application State"

2019-11-11 Thread Quincey Morris via Cocoa-dev
On Nov 10, 2019, at 17:39 , Lars C. Hassing via Cocoa-dev wrote: > > I believe data in "~/Library/Saved Application State" is being used for this, > how can I programmatically in app two tell that restoration is not useful ? > > I’ve tried myMainWindow.restorable = NO. The thing that’s

Re: Preventing app from being restored or saving info in "Saved Application State"

2019-11-11 Thread David M. Cotter via Cocoa-dev
i too have this question > On Nov 10, 2019, at 5:39 PM, Lars C. Hassing via Cocoa-dev > wrote: > > I have developed two Cocoa apps, one launching the other helper app. > > If number two app crashes then macOS may ask the user if he wants to relaunch > it, > but it makes no sense launching it

Preventing app from being restored or saving info in "Saved Application State"

2019-11-10 Thread Lars C. Hassing via Cocoa-dev
I have developed two Cocoa apps, one launching the other helper app. If number two app crashes then macOS may ask the user if he wants to relaunch it, but it makes no sense launching it on its own, because it must be launched in a controlled manner and environment from the first app. I believe