X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2e992e06a71d90f1df597441af36f69ef390089a..2c17722ec8a15d93ef9ec4a4ff390a0db9a34d9d:/include/wx/cocoa/window.h diff --git a/include/wx/cocoa/window.h b/include/wx/cocoa/window.h index ff7205b96d..c8b36b275a 100644 --- a/include/wx/cocoa/window.h +++ b/include/wx/cocoa/window.h @@ -81,13 +81,8 @@ public: WX_NSAffineTransform CocoaGetWxToBoundsTransform(); #endif //def __OBJC__ protected: - // enable==false: disables the control - // enable==true: enables the control IF it should be enabled - bool EnableSelfAndChildren(bool enable); // actually enable/disable the cocoa control, overridden by subclasses virtual void CocoaSetEnabled(bool enable) { } - // Reflects the state for THIS window (ignoring disables by parents) - bool m_shouldBeEnabled; void CocoaCreateNSScrollView(); void InitMouseEvent(wxMouseEvent &event, WX_NSEvent cocoaEvent); @@ -198,7 +193,7 @@ public: // NOTE: typically Close() is not virtual, but we want this for Cocoa virtual bool Close( bool force = false ); virtual bool Show( bool show = true ); - virtual bool Enable( bool enable = true ); + virtual void DoEnable( bool enable ); virtual bool IsDoubleBuffered() const { return true; } };