From: Vadim Zeitlin Date: Mon, 3 Jan 2011 14:58:47 +0000 (+0000) Subject: Don't use deprecated NSTableView selectRow:byExtendingSelection: method. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/64d79e161717caa2a32cf3522c8884665f549597 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 --- diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index 02a4c62f00..648593523f 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -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];