Re: NSTableView Drag/Drop - Which Column?
Re: NSTableView Drag/Drop - Which Column?
- Subject: Re: NSTableView Drag/Drop - Which Column?
- From: Keary Suska <email@hidden>
- Date: Sat, 23 Jul 2016 08:06:50 -0600
> On Jul 23, 2016, at 6:53 AM, Frank D. Engel, Jr. <email@hidden> wrote:
>
> Does anyone know if there is a way to determine which column of an NSTableView something being dragged is dropped onto?
>
> I have drag and drop from one table in my application onto a row of another table working, but I would like to know which column of the destination table the source item was released on so that I can have different behavior depending on which column received the object.
>
> The destination table is view-based if that makes a difference.
In your drag operation method have you tried calling [NSEvent mouseLocation] and then using -columnAtPoint: to determine which column the pointer is at? Noting that +mouseLocation provides screen coordinates, so they will need to be converted.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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