From aaedb44c5e7169db22d32e8a335936e3213da33a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 Nov 2009 01:32:58 +0000 Subject: [PATCH] Revert r62598 which removed "unnecessary wxOSX_USE_COCOA checks." These checks were not unnecessary at all, this file is used for both Cocoa and Carbon, fix this momentary lapse of reason. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/osx/dvrenderers.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/wx/osx/dvrenderers.h b/include/wx/osx/dvrenderers.h index 39a122f557..47225e2ff3 100644 --- a/include/wx/osx/dvrenderers.h +++ b/include/wx/osx/dvrenderers.h @@ -56,9 +56,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewTextRenderer) @@ -81,6 +83,8 @@ private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewBitmapRenderer) }; +#if wxOSX_USE_COCOA + // ------------------------------------- // wxDataViewChoiceRenderer // ------------------------------------- @@ -103,6 +107,8 @@ private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewChoiceRenderer) }; +#endif // wxOSX_USE_COCOA + // --------------------------------------------------------- // wxDataViewIconTextRenderer // --------------------------------------------------------- @@ -115,9 +121,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewIconTextRenderer) @@ -136,9 +144,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewToggleRenderer) @@ -158,9 +168,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewProgressRenderer) @@ -179,9 +191,11 @@ public: virtual bool MacRender(); +#if wxOSX_USE_COCOA virtual void OSXOnCellChanged(NSObject *value, const wxDataViewItem& item, unsigned col); +#endif // Cocoa private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewDateRenderer)