row numbers participating in a table drag
-
Hello,
From the NSTableDataSource doc:
- (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:
(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard*)pboard
"rowIndexes is an index set of row numbers that will be participating
in the drag."
How are the row numbers that will be participating in the drag
determined? rowIndexes is always all the rows in my table. I only
care about the row the user clicked on to start the drag.
Thanks,
Gonzalo -
> How are the row numbers that will be participating in the drag
> determined?
They are the selected rows or an empty index set if nothing is selected.
> rowIndexes is always all the rows in my table. I only
> care about the row the user clicked on to start the drag.
Hmm ... this seems wrong. You may need to post your code. I've never
run into this problem (ie, the rowIndexes are always the selected rows
when the drag was initiated).
--
I.S.