Re: Reordering a table insanity
Re: Reordering a table insanity
- Subject: Re: Reordering a table insanity
- From: Seth Willits <email@hidden>
- Date: Wed, 28 Nov 2012 08:00:07 -0800
On Nov 27, 2012, at 10:35 PM, Quincey Morris wrote:
> C1. Loop over the "less than" set starting from its highest index and working down. At each iteration, move the row at the current index to the targetIndex row.
>
> ...
>
> Am I crazy or isn't it just that easy?
Well, you left some details out which made it appear easier. You do need to adjust the indexes in C1 because you're reordering the dragged items backwards otherwise.
--
Seth Willits
_______________________________________________
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