From: Vadim Zeitlin Date: Tue, 10 Nov 2009 18:17:38 +0000 (+0000) Subject: Send the selected item in wxDVC SELECTION_CHANGED event in OSX/Cocoa. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f49f59d0c9375f0a183c83b971ac81ce385dfdf9 Send the selected item in wxDVC SELECTION_CHANGED event in OSX/Cocoa. This event was perfectly useless as it didn't indicate which item was selected. Do set the selected item now, just as the generic and GTK versions do. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index bff2560e35..3a244c6829 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -1751,7 +1751,8 @@ outlineView:(NSOutlineView*)outlineView wxDataViewEvent event(wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,dvc->GetId()); event.SetEventObject(dvc); - event.SetModel (dvc->GetModel()); + event.SetModel(dvc->GetModel()); + event.SetItem(dvc->GetSelection()); dvc->GetEventHandler()->ProcessEvent(event); }