Do not open a file without a title if OS X Lion reopens a document

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?

+5
source share
1 answer

Lion:

, Untitled . , , 10,6 , Untitled . 10.7, 10.7. , Untitled .

, , " , , , ".

+2