Don't use deprecated NSTableView selectRow:byExtendingSelection: method.

Use selectRowIndexes:byExtendingSelection: instead even if this means that we
need to create a trivial NSIndexSet containing a single index only.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-01-03 14:58:47 +00:00
parent e62e216806
commit 64d79e1617

View File

@@ -444,7 +444,8 @@ void wxListWidgetCocoaImpl::ListSetSelection( unsigned int n, bool select, bool
{
// TODO
if ( select )
[m_tableView selectRow: n byExtendingSelection:multi];
[m_tableView selectRowIndexes:[NSIndexSet indexSetWithIndex:n]
byExtendingSelection:multi];
else
[m_tableView deselectRow: n];