在Mac OSX 10.9上,NSOpenPanel需要更长的时间 [英] NSOpenPanel takes longer time on Mac OSX 10.9

查看:103
本文介绍了在Mac OSX 10.9上,NSOpenPanel需要更长的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Mac OSX 10.9上,我的应用程序中遇到了NSOpenPanel问题. NSopenpanel首次启动需要更长的时间. 我观察到[NSOpenPanel openPanel]第一次执行需要花费较长时间.因此,第一次启动需要一些延迟.任何人都可以提出解决此问题的建议

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

推荐答案

这可能是由于NSOpenPanel的特殊体系结构.打开的面板会在自己的名为"Powerbox"的进程中运行,尤其是在将应用程序沙盒化的情况下. Powerbox没有API.即使您的应用程序没有被沙盒化,也请确保您对应用程序进行了适当的签名.

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.

我想指出一些有关它的文档,但是整个Powerbox和Sandbox的文档很少,并且在引入时也实现得很差.

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.

这篇关于在Mac OSX 10.9上,NSOpenPanel需要更长的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆