fixing osx_carbon guard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -157,7 +157,7 @@ bool MyApp::OnInit()
|
|||||||
new wxDocTemplate(docManager, "Drawing", "*.drw", "", "drw",
|
new wxDocTemplate(docManager, "Drawing", "*.drw", "", "drw",
|
||||||
"Drawing Doc", "Drawing View",
|
"Drawing Doc", "Drawing View",
|
||||||
CLASSINFO(DrawingDocument), CLASSINFO(DrawingView));
|
CLASSINFO(DrawingDocument), CLASSINFO(DrawingView));
|
||||||
#if defined( __WXMAC__ ) && defined( wxOSX_USE_CARBON )
|
#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
|
||||||
wxFileName::MacRegisterDefaultTypeAndCreator("drw" , 'WXMB' , 'WXMA');
|
wxFileName::MacRegisterDefaultTypeAndCreator("drw" , 'WXMB' , 'WXMA');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -173,7 +173,7 @@ bool MyApp::OnInit()
|
|||||||
new wxDocTemplate(docManager, "Text", "*.txt;*.text", "", "txt;text",
|
new wxDocTemplate(docManager, "Text", "*.txt;*.text", "", "txt;text",
|
||||||
"Text Doc", "Text View",
|
"Text Doc", "Text View",
|
||||||
CLASSINFO(TextEditDocument), CLASSINFO(TextEditView));
|
CLASSINFO(TextEditDocument), CLASSINFO(TextEditView));
|
||||||
#if defined( __WXMAC__ ) && defined( wxOSX_USE_CARBON )
|
#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
|
||||||
wxFileName::MacRegisterDefaultTypeAndCreator("txt" , 'TEXT' , 'WXMA');
|
wxFileName::MacRegisterDefaultTypeAndCreator("txt" , 'TEXT' , 'WXMA');
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user