Re: Drag and drop on table view
Re: Drag and drop on table view
- Subject: Re: Drag and drop on table view
- From: Jens Alfke <email@hidden>
- Date: Fri, 02 Dec 2016 09:19:27 -0800
> On Dec 2, 2016, at 5:36 AM, J.E. Schotsman <email@hidden> wrote:
>
> I am still not sure if I am doing this the right way (extending NSTableView) because Xcode says "Subclassing NSTableView is usually not necessary”.
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
—Jens
_______________________________________________
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