• 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: Reordering a table insanity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Reordering a table insanity (From: Graham Cox <email@hidden>)
 >Re: Reordering a table insanity (From: Quincey Morris <email@hidden>)
 >Re: Reordering a table insanity (From: Graham Cox <email@hidden>)
 >Re: Reordering a table insanity (From: Graham Cox <email@hidden>)
 >Re: Reordering a table insanity (From: Quincey Morris <email@hidden>)

  • Prev by Date: Checking if mouse event was generated by touch
  • Next by Date: Re: what happens when layout constraint height and frame height conflict (iOS)?
  • Previous by thread: Re: Reordering a table insanity
  • Next by thread: Checking if mouse event was generated by touch
  • Index(es):
    • Date
    • Thread