• 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: sorting two arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sorting two arrays


  • Subject: Re: sorting two arrays
  • From: "Michael Ash" <email@hidden>
  • Date: Mon, 28 Jul 2008 21:19:16 -0400

On Mon, Jul 28, 2008 at 9:17 PM, Graham Cox <email@hidden> wrote:
> Ah, OK, didn't quite grok that. If they are related, could object A have a
> reference to object B? If so, just sorting one array then gives you the
> other objects sorted in the same order without having to sort array B (or
> even have one).

Or, as a really simple/dumb technique, store one array of dictionaries
with two key/value pairs. As an added bonus, using valueForKey: on the
array makes it very easy to extract arrays of the actual objects.

Mike
_______________________________________________

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: 
 >sorting two arrays (From: Jeff LaMarche <email@hidden>)
 >Re: sorting two arrays (From: Graham Cox <email@hidden>)
 >Re: sorting two arrays (From: Randall Meadows <email@hidden>)
 >Re: sorting two arrays (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: sorting two arrays
  • Next by Date: Re: What is the maximum NSURL length?
  • Previous by thread: Re: sorting two arrays
  • Next by thread: Re: sorting two arrays
  • Index(es):
    • Date
    • Thread