我创建了一个NSDocument
基础应用程序,它提供了一个自定义文件格式,它是一个包含多个资源的包......一切正常,我可以保存、加载、显示包内容等......
问题是,当我想通过 Internet 发送它时,比如使用 gmail 或 Dropbox……文件缩小(从 KB 到字节)并且没有说明我的应用程序的名称,也没有“显示包内容有效”
mdls
kMDItemContentCreationDate = 2013-11-28 21:29:25 +0000
kMDItemContentModificationDate = 2013-11-28 21:30:06 +0000
kMDItemContentType = "com.xxx.yyy"
kMDItemContentTypeTree = (
"com.xxx.yyy",
"public.composite-content",
"public.content",
"com.apple.package",
"public.directory",
"public.item"
)
kMDItemDateAdded = 2013-11-28 21:30:06 +0000
kMDItemDisplayName = "FILENAME.ext"
kMDItemFSContentChangeDate = 2013-11-28 21:30:06 +0000
kMDItemFSCreationDate = 2013-11-28 21:29:25 +0000
kMDItemFSCreatorCode = ""
kMDItemFSFinderFlags = 0
kMDItemFSHasCustomIcon = (null)
kMDItemFSInvisible = 0
kMDItemFSIsExtensionHidden = 0
kMDItemFSIsStationery = (null)
kMDItemFSLabel = 0
kMDItemFSName = "FILENAME.apr"
kMDItemFSNodeCount = 1
kMDItemFSOwnerGroupID = 20
kMDItemFSOwnerUserID = 501
kMDItemFSSize = 134690
kMDItemFSTypeCode = ""
kMDItemKind = "MyApp"
kMDItemLogicalSize = 134690
kMDItemPhysicalSize = 135168
MIME 应用程序/x 目录;字符集=二进制