]> git.saurik.com Git - wxWidgets.git/commit
Fix wxDataViewChoiceRenderer behaviour in wxOSX/Cocoa.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2012 14:36:56 +0000 (14:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2012 14:36:56 +0000 (14:36 +0000)
commit119e862ca9898d238c8d040718fc0f062dd43a16
tree449d8adac285b14d7854f50a85299a8195238389
parent87762892be6f3ff299f886457c637a22b1c09424
Fix wxDataViewChoiceRenderer behaviour in wxOSX/Cocoa.

Changing the value of a "choice" cell in wxDataViewCtrl didn't work correctly
in wxOSX/Cocoa because wxDataViewChoiceRenderer used the base class version of
OSXOnCellChanged() which passed the integer index we received from NSOutlineView
to the model instead of the expected string.

Fix this by overriding OSXOnCellChanged() in wxDataViewChoiceRenderer itself
and using its argument as an integer index of the selection because this is
what it is, at least under OS X 10.7.

Closes #14373.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/osx/dvrenderers.h
src/osx/cocoa/dataview.mm