Sanich
Sanich

Reputation: 1835

In what cases [NSDocument fileURL] can be nil?

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

Answers (1)

Dirk
Dirk

Reputation: 2425

document.fileURL is nil until you save the document for the first time.

Upvotes: 1

Related Questions