Re: sorting two arrays
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