support wxFD_MULTIPLE

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-02-16 06:59:53 +00:00
parent 2677566b1d
commit fd5907ffd9

View File

@@ -198,6 +198,8 @@ void wxFileDialog::ShowWindowModal()
[oPanel setResolvesAliases:YES];
[oPanel setCanChooseFiles:YES];
[oPanel setMessage:cf.AsNSString()];
if ( HasFlag(wxFD_MULTIPLE) )
[oPanel setAllowsMultipleSelection:YES];
NSWindow* nativeParent = parentWindow->GetWXWindow();
ModalDialogDelegate* sheetDelegate = [[ModalDialogDelegate alloc] init];
@@ -292,6 +294,8 @@ int wxFileDialog::ShowModal()
[oPanel setResolvesAliases:YES];
[oPanel setCanChooseFiles:YES];
[oPanel setMessage:cf.AsNSString()];
if ( HasFlag(wxFD_MULTIPLE) )
[oPanel setAllowsMultipleSelection:YES];
returnCode = [oPanel runModalForDirectory:dir.AsNSString()
file:file.AsNSString() types:types];