I'm creating the document with:
[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]
When I'm working with the instance of NSDocument
and sometimes I'm getting crashes because document.fileURL == nil
. What cases in NSDocument
lifecycle can cause this?
document.fileURL
isnil
until you save the document for the first time.