Xcode4 NSOpenPanel在山狮下坠毁

Xcode4 NSOpenPanel在山狮下坠毁,xcode4,osx-mountain-lion,nsopenpanel,Xcode4,Osx Mountain Lion,Nsopenpanel,在我的几个项目中,我使用以下代码: NSOpenPanel * ProfilOpenPanel = [NSOpenPanel openPanel]; [ProfilOpenPanel setCanChooseFiles:YES]; [ProfilOpenPanel setCanChooseDirectories:NO]; [ProfilOpenPanel setAllowsMultipleSelection:YES]; [ProfilOpenPanel setAllowedFileTypes:[

在我的几个项目中,我使用以下代码:

NSOpenPanel * ProfilOpenPanel = [NSOpenPanel openPanel];
[ProfilOpenPanel setCanChooseFiles:YES];
[ProfilOpenPanel setCanChooseDirectories:NO];
[ProfilOpenPanel setAllowsMultipleSelection:YES];
[ProfilOpenPanel setAllowedFileTypes:[NSArray arrayWithObject:@"txt"]];
int antwort=[ProfilOpenPanel runModal];
由于升级到10.8和Xcode4.5,这段代码不再工作。 面板打开,但随后应用程序崩溃,调试导航器中出现如下消息: quicklook.pluginload(串行) 1线 螺纹5 14_pthread_wqthread

在控制台中,会出现两个警告: WindowsServer:CGXDeferSurfaces:无效的源窗口19938 还有一个警告: 12月28日12:10:40.001 Xcode[78227]:[MT]DVTAssertions:Warning in/SourceCache/IDEKit/IDEKit-1854/Framework/Classes/Editor/IDEEditorContext.m:617 详细信息:x-xcode-di丢失的历史记录sassembly://stack_frame? processID=31774&threadID=12&frameID=0 对象: 方法:-忘记最重要的文档存储 线程:{name=(null),num=1}
请使用此警告消息和您可以提供的任何有用信息在上提交一个bug。

在xcode中禁用我的异常断点对我来说很有效。或者尝试禁用所有断点


来源:同一张海报的答案在博客上

你能把完整的stacktrace和符号一起贴出来吗。