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

Re: compare two array


  • Subject: Re: compare two array
  • From: "Jordan Krushen" <email@hidden>
  • Date: Sat, 1 Apr 2006 20:14:37 -0800

On 4/1/06, Yorh <email@hidden> wrote:

> I have two Arrays onr with a varibla number of objects and the second
> one too.

> I have to remove from the first array the object that isn't present
> in the second one, but I can't find if there is some method to do it...

It sounds like you may want to use sets instead of arrays if the
contents aren't ordered.

See:
file:///Developer/ADC Reference Library/documentation/Cocoa/Conceptual/Collections/index.html

and:
file:///Developer/ADC Reference Library/documentation/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSSet_index.html

HTH,

J.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >compare two array (From: Yorh <email@hidden>)

  • Prev by Date: Re: compare two array
  • Next by Date: Weirdness in my PowerBook. /bin/ps spawned by NSTask never exits
  • Previous by thread: Re: compare two array
  • Next by thread: Weirdness in my PowerBook. /bin/ps spawned by NSTask never exits
  • Index(es):
    • Date
    • Thread