From b8afeb4321d8ab91e2ab6a3eb4bd4e42c2c1008d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 10 Jan 2003 16:24:01 +0000 Subject: [PATCH] added code for respecting the creator & types when saving files git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index b0e10bd..eb9276a 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -43,6 +43,9 @@ #include "wx/log.h" #endif +#ifdef __WXMAC__ + #include "wx/filename.h" +#endif #ifdef __WXGTK__ #include "wx/mdi.h" @@ -317,6 +320,10 @@ bool wxDocument::OnSaveDocument(const wxString& file) Modify(FALSE); SetFilename(file); SetDocumentSaved(TRUE); +#ifdef __WXMAC__ + wxFileName fn(file) ; + fn.MacSetDefaultTypeAndCreator() ; +#endif return TRUE; } -- 2.7.4