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.
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today