#include "wx/filedlg.h"
#include "wx/app.h"
#endif
+
#include "wx/filename.h"
#include "wx/cocoa/autorelease.h"
//If the user requests to save - use a NSSavePanel
//else use a NSOpenPanel
- if (m_dialogStyle & wxSAVE)
+ if (m_dialogStyle & wxFD_SAVE)
{
SetNSPanel([NSSavePanel savePanel]);
// dialogs are all that useful, anyway :)
//
}
- else //m_dialogStyle & wxOPEN
+ else //m_dialogStyle & wxFD_OPEN
{
SetNSPanel([NSOpenPanel openPanel]);
[m_cocoaNSWindow setTitle:wxNSStringWithWxString(message)];
- [(NSOpenPanel*)m_cocoaNSWindow setAllowsMultipleSelection:(m_dialogStyle & wxMULTIPLE)];
+ [(NSOpenPanel*)m_cocoaNSWindow setAllowsMultipleSelection:(m_dialogStyle & wxFD_MULTIPLE)];
[(NSOpenPanel*)m_cocoaNSWindow setResolvesAliases:YES];
[(NSOpenPanel*)m_cocoaNSWindow setCanChooseFiles:YES];
[(NSOpenPanel*)m_cocoaNSWindow setCanChooseDirectories:NO];
int nResult;
- if (m_dialogStyle & wxSAVE)
+ if (m_dialogStyle & wxFD_SAVE)
{
nResult = [GetNSSavePanel()
runModalForDirectory:wxNSStringWithWxString(m_dir)
m_path = m_fileNames[0];
}
}
- else //m_dialogStyle & wxOPEN
+ else //m_dialogStyle & wxFD_OPEN
{
nResult = [(NSOpenPanel*)m_cocoaNSWindow
runModalForDirectory:wxNSStringWithWxString(m_dir)
}
#endif // wxUSE_FILEDLG
-