Cocoa: Targeting the entire tableview in a drop operation
February 2nd, 2006 at 5:11 pm (trackback)
Hi Programmers.
If you are doing drag and drop in an NSTableView with Cocoa, you can use the following method in your “validateDrop†datasource method to retarget the row it is going to:
- (void)setDropRow:(int)row dropOperation:(NSTableViewDropOperation)op;
The documentation is missing something. If you specify a row of -1 and a dropOperation of NSTableViewDropOn, it will target the entire tableview, as opposed to an individual row.
This entry was posted
on Thursday, February 2nd, 2006 at 5:11 pm and is filed under Apple, Cocoa, General.
You can follow any responses to this entry through the
RSS 2.0 feed.
Both comments and pings are currently closed.







