NSOpenPanel takes longer time on Mac OSX 10.9

后端 未结 1 1353
小鲜肉
小鲜肉 2021-01-25 02:51

On Mac OSX 10.9,I am facing an issue with NSOpenPanel in My application. NSopenpanel takes longer time to launch it for the first time. I observed that [NSOpenPanel openPanel]

相关标签:
1条回答
  • 2021-01-25 03:49

    This is probably because of the special architecture of the NSOpenPanel. The open panel runs in it's own process called "Powerbox", especially if the app is sandboxed. The Powerbox does not have an API. Even if your app is not sandboxed, make sure you sign your app appropriately.

    I'd love to point to some documentation about it, but the whole Powerbox and Sandbox are poorly documented and when introduced also poorly implemented.

    0 讨论(0)
提交回复
热议问题