]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/filedlg.cpp
removed useless files
[wxWidgets.git] / src / mac / carbon / filedlg.cpp
index 144cdee7963c5cf78b7710f47f71bbf7fae77562..504b2af6daba2af6b0cacac5a844b31adefd93ca 100644 (file)
@@ -35,11 +35,8 @@ IMPLEMENT_CLASS(wxFileDialog, wxDialog)
 #endif
 
 #ifndef __DARWIN__
-  #include "morefile.h"
-  #include "moreextr.h"
-  #include "fullpath.h"
-  #include "fspcompa.h"
-  #include "PLStringFuncs.h"
+  #include "MoreFiles.h"
+  #include "MoreFilesExtras.h"
 #endif
 
 extern bool gUseNavServices ;
@@ -560,7 +557,11 @@ pascal Boolean CrossPlatformFilterCallback (
                if (theItem->descriptorType == typeFSS && !theInfo->isFolder)
                {
                  FSSpec        spec;
-                 memcpy( &spec , *theItem->dataHandle , sizeof(FSSpec) ) ;
+#if TARGET_CARBON
+                 ::AEGetDescData(theItem, &spec, sizeof(FSSpec) ) ;
+#else
+                 memcpy( &spec , (*theItem->dataHandle) , sizeof(FSSpec) ) ;
+#endif
                  display = CheckFile( spec.name , theInfo->fileAndFolder.fileInfo.finderInfo.fdType , data ) ;
                }
        }