Re: Drag and drop between two table views.
Re: Drag and drop between two table views.
- Subject: Re: Drag and drop between two table views.
- From: Graham Cox <email@hidden>
- Date: Thu, 28 Oct 2010 10:59:25 +1100
Another thing.
You should also implement:
- (NSDragOperation)tableView:(NSTableView *)aTableView validateDrop:(id <NSDraggingInfo >)info proposedRow:(NSInteger)rowproposedDropOperation:(NSTableViewDropOperation)operation
This should check whether 'BFDragPasteboardType' is actually present on the pasteboard, using the pb method -availableTypeFromArray: and return NSDragOperationCopy if it's there, and NSDragOperationNone otherwise.
Look up "Drag and Drop in Tables" in the "Tableview Programming Guide". It tells you all you need to know.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden