#include <TextCommon.h>
#include <TextEncodingConverter.h>
#endif
+
+#include "wx/mac/private/timer.h"
#endif // wxUSE_GUI
+#include "wx/evtloop.h"
#include "wx/mac/private.h"
#if defined(__MWERKS__) && wxUSE_UNICODE
}
// set the env var name to the given value, return true on success
-WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxChar *value)
+WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxString& value)
+{
+ // TODO : under classic there is no environement support, under X yes
+ return false;
+}
+
+WXDLLEXPORT bool wxUnsetEnv(const wxString& var)
{
// TODO : under classic there is no environement support, under X yes
return false;
return wxPORT_MAC;
}
+wxEventLoopBase* wxGUIAppTraits::CreateEventLoop()
+{
+ return new wxEventLoop;
+}
+
+wxTimerImpl* wxGUIAppTraits::CreateTimerImpl(wxTimer *timer)
+{
+ return new wxCarbonTimerImpl(timer);
+}
+
int gs_wxBusyCursorCount = 0;
extern wxCursor gMacCurrentCursor;
wxCursor gMacStoredActiveCursor;
wxASSERT_MSG( IsValidControlHandle(m_controlRef) , wxT("Invalid Control Handle (maybe already released) in Dispose") );
// we cannot check the ref count here anymore, as autorelease objects might delete their refs later
- CFRelease(m_controlRef);
+ // we can have situations when being embedded, where the control gets deleted behind our back, so only
+ // CFRelease if we are safe
+ if ( IsValidControlHandle(m_controlRef) )
+ CFRelease(m_controlRef);
m_controlRef = NULL;
}