NSOpenPanel takes longer time on Mac OSX 10.9

半城伤御伤魂 提交于 2019-12-04 05:27:02

问题


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] takes longer time to execute for first time.Because of this it took some delay to launch for first time.Can any one suggest how to fix this issue


回答1:


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.



来源:https://stackoverflow.com/questions/24692540/nsopenpanel-takes-longer-time-on-mac-osx-10-9

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!