Do NOT forget to override this in subclasses which use a Cocoa view
not derived from NSControl. Crashes will result.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23016
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Calls the callback and appropriate event handlers
bool ProcessCommand(wxCommandEvent& event);
+ // Enables the control
+ virtual void CocoaSetEnabled(bool enable);
protected:
virtual wxSize DoGetBestSize() const;
};
return GetEventHandler()->ProcessEvent(event);
}
+void wxControl::CocoaSetEnabled(bool enable)
+{
+ [GetNSControl() setEnabled: enable];
+}
+