gpt4 book ai didi

xcode4 - NSOpenPanel 在 Mountain Lion 下崩溃

转载 作者:行者123 更新时间:2023-12-04 02:31:30 25 4
gpt4 key购买 nike

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

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 后,此代码不再有效。面板打开,但随后应用程序崩溃并在 Debug Navigator 中显示一条消息: quicklook.pluginload(串行) 1 线程 线程 5 14 _pthread_wq线程

在控制台中,会出现一些警告: WindowServer:CGXDeferSurfaces:无效源窗口 19938和另一个警告: 28.September.12 12:10:40.001 Xcode [78227]: [MT] DVTAsertions:/SourceCache/IDEKit/IDEKit-1854/Framework/Classes/Editor/IDEEditorContext.m:617 中的警告 详细信息:丢失 x-xcode-disassembly://stack_frame 的历史记录? processID=31774&threadID=12&frameID=0 目的: 方法:-_greatestDocumentAncestorWasForgotten 线程:{name = (null), num = 1} 请在 http://bugreport.apple.com 提交错误带有此警告消息和您可以提供的任何有用信息。

最佳答案

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

资料来源:在博客上对同一张贴者的回答 http://cyborgdino.com/2012/02/nsopenpanel-displaying-a-file-open-dialog-in-os-x-10-7/#comment-702

关于xcode4 - NSOpenPanel 在 Mountain Lion 下崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12638795/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com