]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/control.cpp
switching to safe yields, because we got into loops when handling print document...
[wxWidgets.git] / src / mac / control.cpp
index 5998a660fc6d8b7333aae5cb2e976090a29e01ae..92e8cd3cc840a8a7fa194981990a58488df56e2b 100644 (file)
@@ -400,6 +400,10 @@ void wxControl::MacPostControlCreate()
        {
            wxMacControlActionUPP = NewControlDefUPP( wxMacControlDefintion ) ;
        }
+    // The following block of code is responsible for crashes when switching
+    // back to windows, which can be seen in the dialogs sample.
+    // It is disabled until a proper solution can be found.
+#if 0
 #if TARGET_CARBON
 /*
     only working under classic carbon
@@ -417,6 +421,7 @@ void wxControl::MacPostControlCreate()
       (**cdef).function = (void(*)()) wxMacControlActionUPP;
       (**(ControlHandle)m_macControl).contrlDefProc = (Handle) cdef ;
     }
+#endif
 #endif
        SetControlColorProc( (ControlHandle) m_macControl , wxMacSetupControlBackgroundUPP ) ;
  
@@ -437,6 +442,9 @@ void wxControl::MacPostControlCreate()
      SetSize(pos.x, pos.y, new_size.x, new_size.y);
  
      UMAShowControl( (ControlHandle) m_macControl ) ;
+     
+     SetCursor( *wxSTANDARD_CURSOR ) ;
+     
      Refresh() ;
 }