• 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
NSTableView: move rows through drag and drop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: move rows through drag and drop?


  • Subject: NSTableView: move rows through drag and drop?
  • From: Izak van Langevelde <email@hidden>
  • Date: Tue, 09 Aug 2011 23:43:20 -0400

I implemented drag and drop in an NSTableView by writing the row indexes of the rows to be copied/moved to the pasteboard, which works.

Now I want to allow drag and drop from one document to another, and my first guess was to write the row data to the pasteboard.
What puzzles me, is how to delete the row data from the source data, in case of a move. That is, my acceptDrop inserts the row data into the destination data source, but the indexes of the source rows are not available at this point. Of course, I can add row numbers to the row data on the pasteboard, but this is a bit double. What is the standard approach to this?
---
Grinnikend door het leven...

_______________________________________________

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

  • Follow-Ups:
    • Re: NSTableView: move rows through drag and drop?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Frameworks (ConnectionKit)
  • Next by Date: Re: Lion's new "Resume" feature, document restoration, and splash screens
  • Previous by thread: Re: IKImageBrowserView
  • Next by thread: Re: NSTableView: move rows through drag and drop?
  • Index(es):
    • Date
    • Thread