X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a905992cf7eb7a5734133fc95944b98dde9c00d5..d58526d55433162cef8ad2ed7f422689862c3019:/src/osx/cocoa/dirdlg.mm diff --git a/src/osx/cocoa/dirdlg.mm b/src/osx/cocoa/dirdlg.mm index 4f5063ba61..e68bf5020b 100644 --- a/src/osx/cocoa/dirdlg.mm +++ b/src/osx/cocoa/dirdlg.mm @@ -37,8 +37,8 @@ IMPLEMENT_CLASS(wxDirDialog, wxDialog) wxDirDialog::wxDirDialog(wxWindow *parent, const wxString& message, - const wxString& defaultPath, long style, const wxPoint& pos, - const wxSize& size, const wxString& name) + const wxString& defaultPath, long style, const wxPoint& WXUNUSED(pos), + const wxSize& WXUNUSED(size), const wxString& WXUNUSED(name)) { m_parent = parent; @@ -78,7 +78,8 @@ int wxDirDialog::ShowModal() { fprintf(stderr, "No parent!\n"); } - + +/* if (parentWindow) { NSWindow* nativeParent = parentWindow->GetWXWindow(); @@ -92,6 +93,7 @@ int wxDirDialog::ShowModal() [sheetDelegate release]; } else +*/ { returnCode = (NSInteger)[oPanel runModalForDirectory:dir.AsNSString() file:nil types:nil]; }