setAloweredContentTypes:如何在多个Filetype上使用它
在nsopenpanel
这是一个简单的部分,启用1个filetype打开:
NSArray uttypes;
uttypes=[UTType typesWithTag:@"ach" tagClass:UTTagClassFilenameExtension conformingToType:nil];
[openfilepanel setAllowedContentTypes:uttypes];
现在,如果我想启用多个filetype打开,该怎么办? 我只想能够打开“属于”我的应用程序的文件,没有其他应用程序。
在MacOS 12.2工作
米歇尔工作
In NSOpenPanel
this is the easy part, enabling 1 filetype for opening:
NSArray uttypes;
uttypes=[UTType typesWithTag:@"ach" tagClass:UTTagClassFilenameExtension conformingToType:nil];
[openfilepanel setAllowedContentTypes:uttypes];
Now what do I do if I would like to enable more than one filetype for opening?
I only want to be able to open files that 'belong to' my application, no others.
working on MacOS 12.2
Michel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论