]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/combobxc.cpp
Fix for building under 10.4, where the BlendMode constants are not defined.
[wxWidgets.git] / src / osx / carbon / combobxc.cpp
index c494f9fada09cd27183ec68413b8ba48b0eebe9c..16ac22ad1de153130b9b897ce8f649d1c5a756de 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        src/mac/carbon/combobxc.cpp
+// Name:        src/osx/carbon/combobxc.cpp
 // Purpose:     wxComboBox class using HIView ComboBox
 // Author:      Stefan Csomor
 // Modified by:
@@ -18,7 +18,7 @@
     #include "wx/menu.h"
 #endif
 
-#include "wx/mac/uma.h"
+#include "wx/osx/uma.h"
 #if TARGET_API_MAC_OSX
 #ifndef __HIVIEW__
     #include <HIToolbox/HIView.h>
@@ -219,14 +219,8 @@ wxComboBox::~wxComboBox()
     // delete the controls now, don't leave them alive even though they would
     // still be eventually deleted by our parent - but it will be too late, the
     // user code expects them to be gone now
-    if (m_text != NULL) {
-        delete m_text;
-        m_text = NULL;
-    }
-    if (m_choice != NULL) {
-        delete m_choice;
-        m_choice = NULL;
-    }
+    wxDELETE( m_text );
+    wxDELETE( m_choice );
 }
 
 
@@ -782,12 +776,12 @@ bool wxComboBox::CanRedo() const
 #endif
 }
 
-wxInt32 wxComboBox::MacControlHit(WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENTREF WXUNUSED(event) )
+bool wxComboBox::OSXHandleClicked( double timestampsec )
 {
     wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_SELECTED, m_windowId );
     event.SetInt(GetSelection());
     event.SetEventObject(this);
     event.SetString(GetStringSelection());
     ProcessCommand(event);
-    return noErr;
+    return true;
 }