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:
@@ -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];
|
||||
|
Reference in New Issue
Block a user