• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drag and drop on table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Drag and drop on table view (From: "J.E. Schotsman" <email@hidden>)
 >Re: Drag and drop on table view (From: "J.E. Schotsman" <email@hidden>)
 >Re: Drag and drop on table view (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Migrating shared library plugins to Cocoa Touch Frameworks
  • Next by Date: Re: Documentation Workflow
  • Previous by thread: Re: Drag and drop on table view
  • Next by thread: Re: Drag and drop on table view
  • Index(es):
    • Date
    • Thread