NSTableView drag and drop - re-target drop to entire table?
NSTableView drag and drop - re-target drop to entire table?
- Subject: NSTableView drag and drop - re-target drop to entire table?
- From: Jim Correia <email@hidden>
- Date: Wed, 1 Feb 2006 15:44:24 -0500
NSTableView lets me re-target a drop to a specific row:
/* To be used from validateDrop: if you wish to "re-target" the
proposed drop. To specify a drop on the second row, one would
specify row=2, and op=NSTableViewDropOn. To specify a drop below the
last row, one would specify row=[tv numberOfRows], and
op=NSTableViewDropAbove.
*/
- (void)setDropRow:(int)row dropOperation:(NSTableViewDropOperation)op;
What I'd like to do, however, is re-target it to the entire table (so
the drop feedback is around the inside edge of the table view, not
just one particular row.)
The feedback I'm looking for is similar to that when you drag items
into the song list in iTunes when the Library is selected. (And for
similar reasons - the list already has a prevailing sort order, and
the inserted items may not all end up at a single insertion location
in the destination, so the best feedback is the entire list.)
Is this possible? How?
Thanks,
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden