Re: Drag and drop on table view
Re: Drag and drop on table view
- Subject: Re: Drag and drop on table view
- From: "J.E. Schotsman" <email@hidden>
- Date: Fri, 02 Dec 2016 19:22:29 +0100
> On 02 Dec 2016, at 18:19, Jens Alfke <email@hidden> wrote:
>
> NSTableView has a whole set of delegate calls for implementing drag & drop; you should use those instead. For example
>
> - (NSDragOperation)tableView:(NSTableView*)tv
> validateDrop:(id <NSDraggingInfo>)info
> proposedRow:(NSInteger)row
> proposedDropOperation:(NSTableViewDropOperation)op
Ah! Stupid me, of course I only looked at the delegate, not at the data source.
Thanks, I could copy my code almost verbatim and I get a highlite line too now as a bonus.
Jan E.
_______________________________________________
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