Sandboxed app & NSOpenPanel causes crashes

前端 未结 4 1878
梦谈多话
梦谈多话 2021-02-19 07:40

I am doing a simple file open panel in my Cocoa app. I enable entitlements and app sandboxing. But on OS X 10.9, when the app should open a dialog using NSOpenPanel

4条回答
  •  我寻月下人不归
    2021-02-19 08:20

    Indeed, you have to specifically allow Read/Write permissions on User Selected Files. In Xcode 5.1 this is under Capabilities - App Sandbox.

    enter image description here

提交回复
热议问题