]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/control.mm
adaption custom types to new macros
[wxWidgets.git] / src / cocoa / control.mm
index d7c80c56c7f7b00813b068ec67278f7a7cba5171..fac6d2831dd111b861155505822a880ac9f37217 100644 (file)
@@ -68,16 +68,11 @@ wxSize wxControl::DoGetBestSize() const
 
 bool wxControl::ProcessCommand(wxCommandEvent& event)
 {
-#if WXWIN_COMPATIBILITY
-    if ( m_callback )
-    {
-        (void)(*m_callback)(*this, event);
-
-        return TRUE;
-    }
-    else
-#endif // WXWIN_COMPATIBILITY
-
     return GetEventHandler()->ProcessEvent(event);
 }
 
+void wxControl::CocoaSetEnabled(bool enable)
+{
+    [GetNSControl() setEnabled: enable];
+}
+