]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/radiobox.mm
attempt to get the 'new focus' window parameter of a focus kill event set correctly
[wxWidgets.git] / src / cocoa / radiobox.mm
index 5aee5df989a5be6475ce915d155899f38f5f9f94..54bff0019c1b45ed60a52df513c0f242917b1498 100644 (file)
@@ -255,7 +255,7 @@ bool wxRadioBox::Show(unsigned int n, bool show)
     // TODO
     // NOTE: Cocoa has no visible state for cells so we'd need to replace the
     // cell with a dummy one to hide it or alternatively subclass NSButtonCell
-    // and add the behavior.
+    // and add the behaviour.
     return false;
 }
 
@@ -268,7 +268,7 @@ wxSize wxRadioBox::DoGetBestSize() const
 
 void wxRadioBox::CocoaTarget_action(void)
 {
-    wxCommandEvent event(wxEVT_COMMAND_RADIOBOX_SELECTED, GetId());
+    wxCommandEvent event(wxEVT_RADIOBOX, GetId());
     InitCommandEvent(event);
     event.SetInt(GetSelection()); // i.e. SetSelection.
     Command(event);