Rewrite handling cell value changes in wxOSX/Cocoa wxDVC.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Oct 2009 01:04:26 +0000 (01:04 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 17 Oct 2009 01:04:26 +0000 (01:04 +0000)
commit0599fe19d95bd73f11142bab6c5f90d66fc9b0b5
treea1e6151517bd314b654622564f81020c26548b52
parent8e59cbe40ca6d003598e71c3c54d9a0c06bdff08
Rewrite handling cell value changes in wxOSX/Cocoa wxDVC.

Instead of using a chain of dynamic_cast<>s to find the right type of the
value, construct a wxVariant corresponding to the type of the object we
receive in NSOutlineView:setObjectValue:forTableColumn:byItem and pass it to a
wxDataViewRenderer virtual function.

This fixes assert and allows to edit icon text items under OS X.

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