NSTableView Drag & Drop again...
NSTableView Drag & Drop again...
- Subject: NSTableView Drag & Drop again...
- From: Stéphane Sudre <email@hidden>
- Date: Fri, 6 Jul 2001 19:59:49 +0200
Is it officialy supported to specify -1 as the drop row with a
NSTableViewDropOn to get the whole tableview selected for a drop ?
Example:
- (NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id
<NSDraggingInfo>)info proposedRow:(int)row
proposedDropOperation:(NSTableViewDropOperation)op
{
NSData * tData;
tData=[[info draggingPasteboard] dataForType:NSStringPboardType];
if (tData!=nil)
{
[tv setDropRow:-1 dropOperation:NSTableViewDropOn];
return NSDragOperationCopy;
}
return NSDragOperationNone;
}
Because when I do this and scroll in the NSTableView, there are cosmetic
bugs: lots of horizontal black line (bad clipping ?)