在沙盒应用程序中获取Mac上用户下载文件夹的API [英] API to get user's download folder on Mac in a sandbox app
本文介绍了在沙盒应用程序中获取Mac上用户下载文件夹的API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在沙盒Mac应用程序中获取用户的下载文件夹,即(〜/Downloads)?
How to get the user's downloads folder, i.e., (~/Downloads) in a sandboxed mac app?
感谢帮助!
推荐答案
您可以为下载"文件夹添加权利.
There is an entitlement you can add for the Downloads folder.
根据此Apple文档,您可以在应用的权利文件中添加"com.apple.security.files.downloads.read-write
".
According to this Apple document, you can add "com.apple.security.files.downloads.read-write
" to your app's entitlements file.
这篇关于在沙盒应用程序中获取Mac上用户下载文件夹的API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文