> On Jul 23, 2016, at 6:53 AM, Frank D. Engel, Jr. <[email protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
