如何让 NSOpenPanel 对话框显示“媒体”小节
我希望在我的“打开文件”对话框的侧栏中有“媒体”小节。如果您选择“文件打开...”并在侧边栏中向下滚动,它在某些程序(如 Safari 或预览)中可见(它出现在位置、共享和预览的下方)搜索)
我认为这可能取决于我传递的文件类型,并且已经将数组从 CGImageSourceCopyTypeIdentifiers() 传递到 runModalforTypes 因为我在 cocoabuilder.com 上读到了该内容,但没有媒体小节。有什么想法如何让它出现吗?
谢谢
I would like to have the Media subsection in the sidebar of my Open File Dialog.It is visible in some Programs like Safari or Preview if you select File Open... and scroll down in the sidebar(It comes up underneath places, shared and search for)
I thought it might depend on the filetypes that I pass and already passed the array from CGImageSourceCopyTypeIdentifiers() to runModalforTypes cause I read that on cocoabuilder.com but no Media subsection. Any ideas how to make that appear?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己解决了。问题在于以下几行:
这使得媒体部分消失了。
Solved it myself. The problem were the following lines:
that made the media section disappear.