【发布时间】:2017-06-24 10:11:13
【问题描述】:
我在 Swift 中有一个 macOS 项目,我想在其中获取当前打开文档的文件路径。如何实现?
编辑:我的意思是应用程序本身的打开文档。通常表示为窗口或选项卡。
PS 我检查了这些问题,但没有帮助: How to get file path? Loading documents in Document based app Cocoa question: How to get file path for current open document for the front most application
【问题讨论】:
标签: swift cocoa nsdocument