私のプロジェクトのいくつかでは、次のコードを使用しています。
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(serial)1 Thread Thread 5 14 _pthread_wqthread
コンソールに、いくつかの警告が表示されます。WindowServer:CGXDeferSurfaces:無効なソースウィンドウ19938および別の警告:28.September.12 12:10:40.001 Xcode [78227]:[MT] DVTAssertions:/ 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に報告してください。提供。