From 64d79e161717caa2a32cf3522c8884665f549597 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 3 Jan 2011 14:58:47 +0000 Subject: [PATCH] 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 --- src/osx/cocoa/listbox.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.45.2