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:
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user