Drag between 2 NSTableView?
Drag between 2 NSTableView?
- Subject: Drag between 2 NSTableView?
- From: Todd Freese <email@hidden>
- Date: Thu, 24 Aug 2006 19:23:49 -0500
I am trying setup drag & drop between two NSTableViews. I am getting
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender calls
when the mouse enters the destination NSTableView. But I am not sure
how I would figure out which row they dropped on. Both NSTableViews
are bound to array controllers.
Also, I thought that the destination NSTableView would call:
-(NSDragOperation)tableView:(NSTableView*)tv validateDrop:(id
<NSDraggingInfo>)info proposedRow:(int)row proposedDropOperation:
(NSTableViewDropOperation)op
- or -
-(BOOL)tableView:(NSTableView *)aTableView acceptDrop:(id
<NSDraggingInfo>)info row:(int)row dropOperation:
(NSTableViewDropOperation)operation
but it does not.
Am I missing something here. I could not find any archived messages
for this.
I tried subclassing NSTableView and override:
- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal
{
return NSDragOperationCopy;
}
but it does not help.
Thanks,
Todd Freese
The Filmworkers Club
_______________________________________________
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