下面的代码崩溃,我的插件:为什么从NPAPI插件Safari浏览器崩溃时调用NSOpenPanel?
NSOpenPanel *openFileDig = [NSOpenPanel openPanel];
[openFileDig setCanChooseFiles:true];
[openFileDig setCanChooseDirectories:false];
[openFileDig setAllowsMultipleSelection:false];
[openFileDig setDirectory:NSHomeDirectory()];
if ([openFileDig runModal] == NSOKButton)
{
.........
}
没有做任何事情,在3分钟左右,而openFileDig
运行时,插件就会消失。有人能告诉我为什么吗?
那么你为什么不向我们展示崩溃日志*,一个? –
没有崩溃日志可以显示,插件消失,并没有打印在控制台中。 – Magical