Project: SWT
Bug 258978 Deprecated method being used in Tree, List, and Table
Reported: 2008-12-16 12:45:06 | Status: resolved fixed

According to the Cocoa documentation, the method [NSTableView selectRow:byExtendingSelection:] is deprecated, and that - (void)selectRowIndexes:(NSIndexSet *)indexes byExtendingSelection:(BOOL)extend should be used instead. The deprecated version is used in the following methods: List dragDetect(int, int, boolean, boolean[]) menuForEvent(int, int, int) Table dragDetect(int, int, boolean, boolean[]) menuForEvent(int, int, int) Tree dragDetect(int, int, boolean, boolean[]) menuForEvent(int, int, int) select(TreeItem) This could be a problem in the future, as it was documented as deprecated as of 10.3.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSIndexSet.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableIndexSet.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSTableView.java bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/List.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java