• 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: Searching in NSArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching in NSArray


  • Subject: Re: Searching in NSArray
  • From: Keary Suska <email@hidden>
  • Date: Fri, 5 Jun 2009 09:51:35 -0600

On Jun 5, 2009, at 9:36 AM, Pierce Freeman wrote:

Hi Everyone:

I am most likely overlooking this function, but I just can't seem to find it
in the documentation. I am looking for some way to search an NSArray
listing for one string that is part of multiple objects in the array. This
search then returns the number of objects that contained that string in it.
I imagine this would be built into NSArray, so if anyone could steer me in
the right direction, it would be greatly appreciated!


There isn't a method for this specific operation. The right direction is likely -filteredArrayUsingPredicate:.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

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: 
 >Searching in NSArray (From: Pierce Freeman <email@hidden>)

  • Prev by Date: Re: Searching in NSArray
  • Next by Date: Re: Searching in NSArray
  • Previous by thread: Re: Searching in NSArray
  • Next by thread: Re: Searching in NSArray
  • Index(es):
    • Date
    • Thread