+/*
+ if (parentWindow)
+ {
+ NSWindow* nativeParent = parentWindow->GetWXWindow();
+ ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
+ [oPanel beginSheetForDirectory:dir.AsNSString() file:file.AsNSString()
+ types: types modalForWindow: nativeParent
+ modalDelegate: sheetDelegate
+ didEndSelector: @selector(sheetDidEnd:returnCode:contextInfo:)
+ contextInfo: nil];
+ [sheetDelegate waitForSheetToFinish];
+ returnCode = [sheetDelegate code];
+ [sheetDelegate release];
+ }
+ else
+*/
+ {
+ returnCode = [oPanel runModalForDirectory:dir.AsNSString()
+ file:file.AsNSString() types:types];
+ }
+ if (returnCode == NSOKButton )