X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..12bb29f5432174ecbd65549bda832d70d34a98ae:/src/cocoa/choice.mm?ds=inline diff --git a/src/cocoa/choice.mm b/src/cocoa/choice.mm index 30c9dab74a..12d04eaa86 100644 --- a/src/cocoa/choice.mm +++ b/src/cocoa/choice.mm @@ -29,7 +29,6 @@ #import #import -IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems) BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase) END_EVENT_TABLE() // WX_IMPLEMENT_COCOA_OWNER(wxChoice,NSButton,NSControl,NSView) @@ -118,7 +117,7 @@ void wxChoice::CocoaNotification_menuDidSendAction(WX_NSNotification notificatio int index = [[(NSPopUpButton*)m_cocoaNSView menu] indexOfItem: menuitem]; int selectedItem = [(NSPopUpButton*)m_cocoaNSView indexOfSelectedItem]; wxLogTrace(wxTRACE_COCOA,wxT("menuDidSendAction, index=%d, selectedItem=%d"), index, selectedItem); - wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId); + wxCommandEvent event(wxEVT_CHOICE, m_windowId); event.SetInt(index); event.SetEventObject(this); event.SetString(GetStringSelection());