#include "wx/filename.h"
#include "wx/evtloop.h"
+#include "wx/testing.h"
#include "wx/osx/private.h"
int wxDirDialog::ShowModal()
{
+ WX_TESTING_SHOW_MODAL_HOOK();
+
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);