#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/dialog.h"
- #include "wx/cmndata.h"
#endif // WX_PRECOMP
#include "wx/filename.h"
+#include "wx/testing.h"
#include "wx/osx/private.h"
int wxDirDialog::ShowModal()
{
+ WX_TESTING_SHOW_MODAL_HOOK();
+
NavDialogRef dialog = NULL;
NavDialogCreationOptions options;
NavReplyRecord reply ;
err = NavCreateChooseFolderDialog(&options, sStandardNavEventFilter , NULL, this , &dialog);
if (err == noErr)
{
+ wxDialog::OSXBeginModalDialog();
err = NavDialogRun(dialog);
+ wxDialog::OSXEndModalDialog();
if ( err == noErr )
{
err = NavDialogGetReply(dialog, &reply);