I have a database application (OS X) that opens an untitled document if the user does not specify a document to open at startup. Now, when Leo opens the documents again at startup, I need to know how to prevent the opening of this document without a name, if there are documents that will be reopened since the last launch of the program.
I used to do some checking in
- (BOOL) applicationShouldOpenUntitledFile: (NSApplication *) sender
and will refund YESor NOaccordingly. What should I check to prevent an untitled document from opening when restoring documents?
source
share