]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/choice.mm
fix memory leak in wxScreenDC, fixes #13249
[wxWidgets.git] / src / cocoa / choice.mm
index 334444cdcb06d8a33fc0048312c1b6dae64841fb..0bec755e0026652f78c05961939e444467a33945 100644 (file)
@@ -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,6 @@
 #import <Foundation/NSNotification.h>
 #import <Foundation/NSDictionary.h>
 
-IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems)
 BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase)
 END_EVENT_TABLE()
 // WX_IMPLEMENT_COCOA_OWNER(wxChoice,NSButton,NSControl,NSView)
@@ -122,7 +121,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()