Reputation: 1835
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?
Upvotes: 1
Views: 159
Reputation: 2425
document.fileURL
is nil
until you save the document for the first time.
Upvotes: 1