diff --git a/samples/docview/docview.cpp b/samples/docview/docview.cpp index cf0c52477c..c06246e6a5 100644 --- a/samples/docview/docview.cpp +++ b/samples/docview/docview.cpp @@ -152,10 +152,12 @@ bool MyApp::OnCmdLineParsed(wxCmdLineParser& parser) return wxApp::OnCmdLineParsed(parser); } +#ifdef __WXMAC__ void MyApp::MacNewFile() { wxDocManager::GetDocumentManager()->CreateNewDocument(); } +#endif // __WXMAC__ bool MyApp::OnInit() { diff --git a/samples/docview/docview.h b/samples/docview/docview.h index e4a459254f..a5eba7dfbf 100644 --- a/samples/docview/docview.h +++ b/samples/docview/docview.h @@ -40,7 +40,9 @@ public: virtual void OnInitCmdLine(wxCmdLineParser& parser) wxOVERRIDE; virtual bool OnCmdLineParsed(wxCmdLineParser& parser) wxOVERRIDE; +#ifdef __WXMAC__ virtual void MacNewFile() wxOVERRIDE; +#endif // __WXMAC__ // our specific methods Mode GetMode() const { return m_mode; }