]> git.saurik.com Git - wxWidgets.git/commitdiff
add reasonable default TEMP for __WXMAC__ when running under __DARWIN__
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Dec 2005 13:18:18 +0000 (13:18 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 10 Dec 2005 13:18:18 +0000 (13:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index d1766a8179453f8f503c5c886f29d6c6a2b12785..451effbc3c96c5dc52de539211f32f979eaeb1b0 100644 (file)
@@ -665,6 +665,8 @@ wxFileName::CreateTempFileName(const wxString& prefix, wxFile *fileTemp)
             // default
             #if defined(__DOS__) || defined(__OS2__)
                 dir = _T(".");
             // default
             #if defined(__DOS__) || defined(__OS2__)
                 dir = _T(".");
+            #elif defined(__WXMAC__)
+                dir = wxMacFindFolder(  (short) kOnSystemDisk, kTemporaryFolderType, kCreateFolder ) ;
             #else
                 dir = _T("/tmp");
             #endif
             #else
                 dir = _T("/tmp");
             #endif