/////////////////////////////////////////////////////////////////////////////
-// Name: mac/dirmac.cpp
+// Name: src/osx/carbon/dirmac.cpp
// Purpose: wxDir implementation for Mac
// Author: Stefan Csomor
// Modified by:
#include "wx/log.h"
#endif // PCH
-#include "wx/filefn.h" // for wxDirExists()
#include "wx/filename.h"
#include "wx/osx/private.h"
ItemCount fetched = 0;
err = FSGetCatalogInfoBulk( m_iterator, 1, &fetched, NULL, kFSCatInfoNodeFlags | kFSCatInfoFinderInfo , &catalogInfo , &fileRef, NULL, &uniname );
-
- // expected error codes
-
+
+ // expected error codes
+
if ( errFSNoMoreItems == err )
return false ;
if ( afpAccessDenied == err )
return true;
}
-// ----------------------------------------------------------------------------
-// wxDir helpers
-// ----------------------------------------------------------------------------
-
-/* static */
-bool wxDir::Exists(const wxString& dir)
-{
- return wxDirExists(dir);
-}
-
// ----------------------------------------------------------------------------
// wxDir construction/destruction
// ----------------------------------------------------------------------------
wxDir::~wxDir()
{
- delete m_data;
- m_data = NULL;
+ wxDELETE(m_data);
}
// ----------------------------------------------------------------------------