void wxUsleep(unsigned long milliseconds)
{
+ // TODO remove if we don't encounter any other problemsy
+ /*
clock_t start = clock() ;
do
{
YieldToAnyThread() ;
} while( clock() - start < milliseconds / 1000.0 * CLOCKS_PER_SEC ) ;
+ */
+ wxThread::Sleep( milliseconds ) ;
}
void wxSleep(int nSecs)
// Common Event Support
// ----------------------------------------------------------------------------
+#endif // wxUSE_GUI
+
+#if wxUSE_BASE
+
extern ProcessSerialNumber gAppProcess ;
void wxMacWakeUp()
}
}
+#endif // wxUSE_BASE
+
+#if wxUSE_GUI
+
+
// ----------------------------------------------------------------------------
// Carbon Event Support
// ----------------------------------------------------------------------------
return ::SetEventParameter( m_eventRef , inName , inType , inBufferSize , inData ) ;
}
+// ----------------------------------------------------------------------------
+// Control Access Support
+// ----------------------------------------------------------------------------
+
+OSStatus wxMacControl::GetData(ControlPartCode inPartCode , ResType inTag , Size inBufferSize , void * inOutBuffer , Size * outActualSize )
+{
+ return ::GetControlData( m_controlRef , inPartCode , inTag , inBufferSize , inOutBuffer , outActualSize ) ;
+}
+
+OSStatus wxMacControl::GetDataSize(ControlPartCode inPartCode , ResType inTag , Size * outActualSize )
+{
+ return ::GetControlDataSize( m_controlRef , inPartCode , inTag , outActualSize ) ;
+}
+
+OSStatus wxMacControl::SetData(ControlPartCode inPartCode , ResType inTag , Size inSize , const void * inData)
+{
+ return ::SetControlData( m_controlRef , inPartCode , inTag , inSize , inData ) ;
+}
+
// ----------------------------------------------------------------------------
// debugging support
// ----------------------------------------------------------------------------