// Author: Ryan Norton
// Modified by:
// Created: 2004-10-02
-// RCS-ID: $Id$
// Copyright: (c) Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/osx/private.h"
#include "wx/sysopt.h"
-#include "wx/testing.h"
+#include "wx/modalhook.h"
#include <mach-o/dyld.h>
IMPLEMENT_CLASS(wxFileDialog, wxFileDialogBase)
-wxFileDialog::wxFileDialog(
+void wxFileDialog::Init()
+{
+ m_filterIndex = -1;
+ m_delegate = nil;
+ m_sheetDelegate = nil;
+}
+
+void wxFileDialog::Create(
wxWindow *parent, const wxString& message,
const wxString& defaultDir, const wxString& defaultFileName, const wxString& wildCard,
long style, const wxPoint& pos, const wxSize& sz, const wxString& name)
- : wxFileDialogBase(parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name)
{
- m_filterIndex = -1;
+ wxFileDialogBase::Create(parent, message, defaultDir, defaultFileName, wildCard, style, pos, sz, name);
+
m_sheetDelegate = [[ModalDialogDelegate alloc] init];
[(ModalDialogDelegate*)m_sheetDelegate setImplementation: this];
}
}
NSView* accView = nil;
- m_delegate = nil;
if ( m_useFileTypeFilter )
{
int wxFileDialog::ShowModal()
{
- WX_TESTING_SHOW_MODAL_HOOK();
+ WX_HOOK_MODAL_DIALOG();
wxCFEventLoopPauseIdleEvents pause;