]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use deprecated NSTableView selectRow:byExtendingSelection: method.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Jan 2011 14:58:47 +0000 (14:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 3 Jan 2011 14:58:47 +0000 (14:58 +0000)
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

src/osx/cocoa/listbox.mm

index 02a4c62f001aa1326edc6d0008d4b35884342834..648593523f10e4a327b3af2eab3d72a0051a1f99 100644 (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];