简体   繁体   中英

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?

在第一次保存文档之前, document.fileURL nil

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM