]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/combobox.mm
Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target...
[wxWidgets.git] / src / cocoa / combobox.mm
index f9d8da8edf0b00a31de13a99f3699f422163affb..6c8eb3b04ea221e1517a4d6afb35ed0850eba7c0 100644 (file)
@@ -142,7 +142,7 @@ WX_DECLARE_GET_OBJC_CLASS(wxPoserNSComboBox,NSComboBox)
 - (void)comboBoxSelectionDidChange:(NSNotification *)notification
 {
     wxCocoaNSComboBox *win = wxCocoaNSComboBox::GetFromCocoa(self);
-    win->doWxEvent(wxEVT_COMMAND_COMBOBOX_SELECTED);
+    win->doWxEvent(wxEVT_COMBOBOX);
 }
 
 - (void)comboBoxSelectionIsChanging:(NSNotification *)notification
@@ -224,7 +224,7 @@ wxComboBox::~wxComboBox()
 
 void wxComboBox::doWxEvent(int nEvent)
 {
-    wxCommandEvent event2(wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
+    wxCommandEvent event2(wxEVT_COMBOBOX, GetId() );
     event2.SetInt(GetSelection());
     event2.SetEventObject(this);
     event2.SetString(GetStringSelection());
@@ -232,7 +232,7 @@ void wxComboBox::doWxEvent(int nEvent)
 
     // For consistency with MSW and GTK, also send a text updated event
     // After all, the text is updated when a selection is made
-    wxCommandEvent TextEvent( wxEVT_COMMAND_TEXT_UPDATED, GetId() );
+    wxCommandEvent TextEvent( wxEVT_TEXT, GetId() );
     TextEvent.SetString( GetStringSelection() );
     TextEvent.SetEventObject( this );
     HandleWindowEvent( TextEvent );