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.