X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..7e837615b95205297821dc0b85791ad9e0055df6:/src/cocoa/choice.mm diff --git a/src/cocoa/choice.mm b/src/cocoa/choice.mm index dbc2ce597f..30c9dab74a 100644 --- a/src/cocoa/choice.mm +++ b/src/cocoa/choice.mm @@ -6,7 +6,7 @@ // Created: 2003/03/16 // Id: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -29,7 +29,7 @@ #import #import -IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl) +IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems) BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase) END_EVENT_TABLE() // WX_IMPLEMENT_COCOA_OWNER(wxChoice,NSButton,NSControl,NSView) @@ -122,7 +122,7 @@ void wxChoice::CocoaNotification_menuDidSendAction(WX_NSNotification notificatio event.SetInt(index); event.SetEventObject(this); event.SetString(GetStringSelection()); - GetEventHandler()->ProcessEvent(event); + HandleWindowEvent(event); } void wxChoice::DoClear()