]> git.saurik.com Git - wxWidgets.git/commitdiff
support wxFD_MULTIPLE
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 Feb 2011 06:59:53 +0000 (06:59 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 16 Feb 2011 06:59:53 +0000 (06:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/filedlg.mm

index 8002af191a1967ccfa91f273ec3752549f31bcb1..7bae5e13875ddf31d872a7d365b1a700dd9b9da1 100644 (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];