Use virtual functions to convert NSObject to the correct type in wxDVC.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Oct 2009 23:49:26 +0000 (23:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Oct 2009 23:49:26 +0000 (23:49 +0000)
commit9461dd8c71836ef5140b8c27ac5b7c1202bb1452
treeb8b34f109fb299cb89c21013835d8b6907f28f92
parent795dac4c866d89804e625fa1d04cb70aba320183
Use virtual functions to convert NSObject to the correct type in wxDVC.

Instead of trying to determine the type of the value which should be extracted
from the NSObject we receive from NSOutlineView, just pass it to a virtual
method in the renderer which knows which type does it need.

This fixes the problem with editing boolean/checkbox columns and makes the
code more elegant.

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