#include "wx/filename.h"
#include "wx/evtloop.h"
+#include "wx/modalhook.h"
#include "wx/osx/private.h"
int wxDirDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
wxCFEventLoopPauseIdleEvents pause;
NSOpenPanel *oPanel = OSXCreatePanel();
if (returnCode == NSOKButton )
{
NSOpenPanel* oPanel = (NSOpenPanel*)panel;
- SetPath( wxCFStringRef::AsString([[oPanel filenames] objectAtIndex:0]));
+ SetPath( wxCFStringRef::AsStringWithNormalizationFormC([[oPanel filenames] objectAtIndex:0]));
result = wxID_OK;
}
SetReturnCode(result);