Re: Drag and Drop with tableviews...
Re: Drag and Drop with tableviews...
- Subject: Re: Drag and Drop with tableviews...
- From: Jiva DeVoe <email@hidden>
- Date: Tue, 8 Feb 2005 12:39:22 -0700
Aha! I found it! I had not registered for the type. Dur... thanks.
On Feb 8, 2005, at 12:16 PM, Edward Hillenbrand wrote:
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?
--
Jiva DeVoe
jiva at devoesquared.com
http://www.devoesquared.com
_______________________________________________
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