X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20196e15ee74362130799968e1ac716b2c705836..b39badac119fe944152cd1408a90b82e710ea598:/src/osx/cocoa/listbox.mm?ds=sidebyside diff --git a/src/osx/cocoa/listbox.mm b/src/osx/cocoa/listbox.mm index 02a4c62f00..4b10d40656 100644 --- a/src/osx/cocoa/listbox.mm +++ b/src/osx/cocoa/listbox.mm @@ -4,7 +4,7 @@ // Author: Stefan Csomor // Modified by: // Created: 1998-01-01 -// RCS-ID: $Id: listbox.cpp 54820 2008-07-29 20:04:11Z SC $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -161,7 +161,7 @@ protected : - (id) init { - [super init]; + self = [super init]; column = nil; return self; } @@ -224,7 +224,7 @@ protected: - (id) init { - [super init]; + self = [super init]; impl = nil; return self; } @@ -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];