// Author: Ryan Norton
// Modified by:
// Created: 2004-10-02
-// RCS-ID: $Id$
// Copyright: (c) Ryan Norton
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/string.h"
+#include "wx/modalhook.h"
#import <AppKit/NSOpenPanel.h>
#import <AppKit/NSSavePanel.h>
paths.Empty();
wxString dir(m_dir);
- if ( m_dir.Last() != _T('\\') )
- dir += _T('\\');
+ if ( m_dir.Last() != wxT('\\') )
+ dir += wxT('\\');
size_t count = m_fileNames.GetCount();
for ( size_t n = 0; n < count; n++ )
void wxFileDialog::SetPath(const wxString& path)
{
wxString ext;
- wxSplitPath(path, &m_dir, &m_fileName, &ext);
+ wxFileName::SplitPath(path, &m_dir, &m_fileName, &ext);
if ( !ext.empty() )
- m_fileName << _T('.') << ext;
+ m_fileName << wxT('.') << ext;
}
int wxFileDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
wxAutoNSAutoreleasePool thePool;
m_fileNames.Empty();