On 2011-08-10, at 10:40 AM, Peter Hudson wrote:

> I would do this as follows :-
> 
> At the same time that you write rows to the pasteboard in the source table, 
> store locally ( perhaps in the source table data source )  the row indexes 
> that were written to the pasteboard.
> Set observation for a notification ( perhaps the data source for the source 
> table as the observer )  that you will later send indicating that the rows 
> have been moved successfully.
> 
> At the end of the acceptDrop: ...   method in the target table,  if the drop 
> is completed,  post the notification ( that is observed by the source table 
> data source ) to update its data source by removing the rows you originally 
> wrote to the pasteboard - and update the source table view.


Works, but I think it is an awkward solution, as you might as well do without 
the pasteboard. Also, I'm not sure if this is going to work for 
inter-application drags, which is not what I'm looking for right now, but I 
might work on this in the near future.
---
Grinnikend door het leven...

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to