]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/filedlg.cpp
fixed return value of wxMDIChildFrame::HandleGetMinMaxInfo()
[wxWidgets.git] / src / mac / filedlg.cpp
index 41a37f0dd3bb4b66caeb96a2e18692c6373725be..0ff9c0e9dc59858bc9b315e686a4cc8e6ba04d80 100644 (file)
@@ -318,6 +318,7 @@ pascal Boolean CrossPlatformFilterCallback (
                    wxString file = wxMacMakeStringFromPascal( spec.name ) ;
                 display = CheckFile( file , theInfo->fileAndFolder.fileInfo.finderInfo.fdType , data ) ;
             }   
+ #if TARGET_CARBON
             else if ( theItem->descriptorType == typeFSRef )
             {
                 FSRef fsref ;
@@ -328,6 +329,7 @@ pascal Boolean CrossPlatformFilterCallback (
                 file.UngetWriteBuf() ;
                 display = CheckFile( file , theInfo->fileAndFolder.fileInfo.finderInfo.fdType , data ) ;
             }
+#endif
         }
     }
     
@@ -546,14 +548,16 @@ int wxFileDialog::ShowModal()
         m_fileName = wxFileNameFromPath(m_path);
         m_dir = wxPathOnly(m_path);
         NavDisposeReply( &mNavReply ) ;
+#if TARGET_CARBON
         if ( navDialogRef )
             NavDialogDispose( navDialogRef ) ;   
-
+#endif
         return wxID_OK ;
     }
+#if TARGET_CARBON
     if ( navDialogRef )
         NavDialogDispose( navDialogRef ) ;   
-
+#endif
     return wxID_CANCEL;
 }