X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/584ad2a32fec156c6049145d7ece9a33213aea28..d5e64615977c6839abe565919e8da50ffda40604:/src/cocoa/choice.mm diff --git a/src/cocoa/choice.mm b/src/cocoa/choice.mm index 91ca7a94b9..3dd3ae306b 100644 --- a/src/cocoa/choice.mm +++ b/src/cocoa/choice.mm @@ -112,8 +112,6 @@ wxChoice::~wxChoice() delete (wxClientData*)m_itemsClientData.Item(i); } m_itemsClientData.Clear(); - - CocoaRemoveFromParent(); } void wxChoice::CocoaNotification_menuDidSendAction(WX_NSNotification notification) @@ -122,7 +120,7 @@ void wxChoice::CocoaNotification_menuDidSendAction(WX_NSNotification notificatio NSMenuItem *menuitem = [userInfo objectForKey:@"MenuItem"]; int index = [[(NSPopUpButton*)m_cocoaNSView menu] indexOfItem: menuitem]; int selectedItem = [(NSPopUpButton*)m_cocoaNSView indexOfSelectedItem]; - wxLogDebug(wxT("menuDidSendAction, index=%d, selectedItem=%d"), index, selectedItem); + wxLogTrace(wxTRACE_COCOA,wxT("menuDidSendAction, index=%d, selectedItem=%d"), index, selectedItem); wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId); event.SetInt(index); event.SetEventObject(this);