• 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 with tableviews...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drag and Drop with tableviews...


  • Subject: Re: Drag and Drop with tableviews...
  • From: Edward Hillenbrand <email@hidden>
  • Date: Tue, 8 Feb 2005 12:16:39 -0700

On Feb 8, 2005, at 11:51 AM, Jiva DeVoe wrote:

Am trying to implement drag and drop where I drag a line in a table view, and drop it on the SAME table view, to rearrange the items (like how mail.app handles rules ordering.

Is it possible to do this without subclassing NSTableView?

I have set up my delegate methods, and when I drag in the table view, I get the line moving - so I know the "start" operation is working. But I can't seem to drop it on my table view lower down. If I initiate a drag from a different control to my table view it works.

What's the deal?

You have to add tableView:writeRows:toPasteboard:, tableView:validateDrop:proposedRow:proposedDropOperation: and tableView:acceptDrop:row:dropOperation: to your data source not your delegate unless they are one and the same. Are they the same object?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Drag and Drop with tableviews...
      • From: Jiva DeVoe <email@hidden>
References: 
 >Drag and Drop with tableviews... (From: Jiva DeVoe <email@hidden>)

  • Prev by Date: Re: Drag and Drop with tableviews...
  • Next by Date: Re: Drag and Drop with tableviews...
  • Previous by thread: Re: Drag and Drop with tableviews...
  • Next by thread: Re: Drag and Drop with tableviews...
  • Index(es):
    • Date
    • Thread