I have a file-based Objective C app for macOS. When the user starts the app, macOS automatically reopens files that were open when the user last ran the app. I want to prevent that, sometimes.
I'd like to use AppDelegate applicationWillFinishLaunching to suppress the file opening, or just delete the cache of names, but can't find an interface or the location of the cache.