• 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
Search Array for Variable in Object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Search Array for Variable in Object


  • Subject: Search Array for Variable in Object
  • From: Steve Gran <email@hidden>
  • Date: Sun, 4 Dec 2005 13:48:07 -0800

I know I can search an array of object for a specific object, but is there a way to search an array of objects looking for a specific value of one particular variable of the object?

For example,

let's say myObject has 3 variables: int varOne, NSString varTwo, NSString varThree

and myArray contains myObject1, myObject2, myObject3

How would I search myArray to find an object whose varTwo (an NSString)= "The Key String"
_______________________________________________
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
  • Follow-Ups:
    • Re: Search Array for Variable in Object
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Memory "weight" of objects
  • Next by Date: Re: Memory "weight" of objects
  • Previous by thread: Re: Memory "weight" of objects
  • Next by thread: Re: Search Array for Variable in Object
  • Index(es):
    • Date
    • Thread