How do you know if a NSDocument
is new?
I'm currently using fileURL != nil
but I couldn't find any place in the documentation that confirms this.
Also, fileURL
returns nil
in restored documents (after quitting the app without saving and then opening the app again). Is it possible to differentiate between a new document and a restored document?